yyx990803/grunt-component-add — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2016-02-20
Watch a src/ folder and auto-add new CSS, JS, or template files to component.json.
Automatically remove entries from the manifest when a file is deleted.
Keep a modular front-end project's manifest accurate without manual bookkeeping.
Customize which file extensions map to which component.json sections.
| yyx990803/grunt-component-add | 3imed-jaberi/cryptography-si-isamm | 3imed-jaberi/koa-isomorphic-router | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2016-02-20 | 2021-09-25 | 2021-02-06 |
| Maintenance | Dormant | Dormant | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 1/5 | 2/5 |
| Audience | developer | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an existing Grunt + Component-based project to plug into.
This is a tool for developers who use Grunt (a task automation system) and Component (a package manager for front-end code). It automatically keeps your component.json file up to date when you add or delete files in your project. When you're building a web project, you typically need to list all your stylesheets, scripts, images, and templates in a configuration file called component.json. This project makes that process hands-off: instead of manually editing that file every time you create or remove a file, this tool watches your source folder and updates the list automatically. You configure it to monitor a directory (like src/), and whenever a file appears or disappears there, it detects the file type and adds or removes it from the right section of component.json. It recognizes common file types out of the box, CSS and Sass files go in the "styles" section, JavaScript and CoffeeScript in "scripts," HTML and template files in "templates," and images in their own section. The tool integrates with Grunt's watch feature, which means you get real-time updates as you work. You define what file patterns to monitor and what task to run when they change (in this case, the component-add task), and it handles the rest. The README shows a practical example: configure it to watch everything in src/, set it to trigger only when files are added or deleted, and it will keep your manifest in sync without you thinking about it. This would be useful for developers working on modular front-end projects who want to eliminate tedious bookkeeping. Rather than remembering to add every new stylesheet or script to the manifest, they can just create the file and let the automation take care of registering it. The tool also lets you customize which file extensions map to which categories and control how the JSON file is formatted.
A Grunt plugin that automatically keeps a project's component.json manifest in sync whenever files are added or removed, so you never edit it by hand.
Mainly JavaScript. The stack also includes JavaScript, Grunt, Component.
Dormant — no commits in 2+ years (last push 2016-02-20).
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.