- Unlinke our older scaffold modules, the new "grunt-scaffold-*" modules are much more involved into the projects they scaffold.
The module should be installed globally.
npm install -g UsabilityDynamics/grunt-scaffold-module
At the command-line, cd into an empty directory, run this command and follow the prompts.
When install globally, following CLI commands may be used.
scaffold-module install
- Create new module from scaffold in current directory.scaffold-module update
- Update module currently installed using scaffold.scaffold-module validate
- Validate currenly install module using scaffold.scaffold-module -v
- Check version.
The legacy method still works as well.
grunt-init scaffold-module
This module contains several useful grunt Tasks, Mocha Tests and regular Methods which can be refered by scaffolded modules.
// Read the .project.yml file and get a list of features.
var project = require( 'grunt-scaffold-module' ).getProject();
console.log( project.features );