version: 0.1.1
An Yeoman Generator to create a basic UMD (Universal Module Definition) structure.
This script is an Yeoman Generator, meant to be used with some modern Javascript tools such as npm and Bower.
The generated module will use the returnExportsGlobal definition from UMD.
It will provide support to both AMD(RequireJS), Node.js, Browserify and global namespace definition.
File definition for both npm and Bower package managers will be also generated along with the initial structure.
A simple Mocha test suit will be available with some dummy tests.
You will need to have at least npm previously installed on your machine.
npm install -g yo
npm install -g generator-umd
mkdir new-module
cd new-module/
yo umd
npm test
command.If you need to consume other libraries from inside your module, you will have to take a look at the UMD spec and implement it by yourself.
I have plans to add this feature in a subgenerator, using the comment metadata from the generated module file.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
Released under the MIT License.