millermedeiros / amd-utils

modular JavaScript utilities written in the AMD format
http://millermedeiros.github.com/amd-utils
142 stars 11 forks source link

automate module creation #85

Closed millermedeiros closed 12 years ago

millermedeiros commented 12 years ago

The way the node build command works nowadays is kinda dumb since it will update packages even if not necessary and it doesn't check if each module contains a proper spec file and documentation.

I think it's time to add command line arguments to the build. We should automate the way a new module is created adding a new source file, a failing spec and update the spec runner and packages automatically during insertion. We should also add a command to refresh the packages as well in case user decides to add new modules manually.

Example:

$ node build add array/invoke
    created:
      - src/array/invoke.js
      - tests/spec/array/spec-invoke.js
    updated:
      - src/array.js
      - tests/spec/spec-array.js