git404hub

what is grunt-component-add fr?

yyx990803/grunt-component-add — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2016-02-20

2JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

tl;dr

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.

vibe map

mindmap
  root((repo))
    What it does
      Watches source folder
      Auto-updates component.json
      Sorts files by type
      Runs via Grunt watch
    Tech stack
      JavaScript
      Grunt
      Component package manager
    Use cases
      Skip manual manifest edits
      Auto-register new scripts
      Auto-register new styles
      Keep manifest in sync
    Audience
      Front-end developers
      Grunt users
      Modular project maintainers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Watch a src/ folder and auto-add new CSS, JS, or template files to component.json.

VIBE 2

Automatically remove entries from the manifest when a file is deleted.

VIBE 3

Keep a modular front-end project's manifest accurate without manual bookkeeping.

VIBE 4

Customize which file extensions map to which component.json sections.

what's the stack?

JavaScriptGruntComponent

how it stacks up fr

yyx990803/grunt-component-add3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2016-02-202021-09-252021-02-06
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 30min

Requires an existing Grunt + Component-based project to plug into.

in plain english

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.

prompts (copy fr)

prompt 1
Show me how to configure Grunt's watch task to trigger this plugin's component-add task.
prompt 2
Help me set up this plugin to monitor my src/ directory and update component.json on file add or delete.
prompt 3
How do I customize which file extensions map to the styles, scripts, and templates sections?
prompt 4
Explain how this tool decides which section of component.json a new file belongs in.

Frequently asked questions

what is grunt-component-add fr?

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.

What language is grunt-component-add written in?

Mainly JavaScript. The stack also includes JavaScript, Grunt, Component.

Is grunt-component-add actively maintained?

Dormant — no commits in 2+ years (last push 2016-02-20).

How hard is grunt-component-add to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is grunt-component-add for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.