Yeoman (http://yeoman.io) generator for a single AMD module
MIT License
A generator for Yeoman.
It provides a basic boilerplate for a single AMD module, which features:
The proposed Grunt build for the generated AMD module has the following tasks:
You must have Nodejs and NPM installed.
Then, to install Yeoman globally from npm, run:
npm install -g yo
Finally, to install generator-amd globally from npm, run:
npm install -g generator-amd
Once you have installed Node, NPM and Yeoman, you can initiate the generator:
yo amd
Yeoman will ask you 3 questions:
In order to build your generated AMD module from its source, you will also need Grunt. To install Grunt globally on the command line (and run the above build task), run:
npm install -g grunt-cli
Once you have generated your AMD module skeleton, you can build the minified files, the documentation and the example with Grunt:
grunt build
You can also launch the grunt serve
task to load the "example" folder in your browser and benefit from livereload of the page in the browser once you edit one of your source file or one of the example files:
grunt serve
The generator itself can be built from its sources. At the moment, the build process only includes syntax checks with JSHint and JSCS.
In order to build the generator from its source, you will need Grunt. To install Grunt globally on the command line (and run the above build task), run:
npm install -g grunt-cli
Just run the grunt task
in the folder where your generator is installed:
grunt
This generator bundles Require.js for the generated example's purposes.
This generator is released under the MIT License.