build the standard cmd module
the build tools for spmjs.org
spm build is designed to build standard cmd modules.
Customized building should use these grunt tasks:
A standard module contains:
package.jsonsrc/module-name.jsdist/module-name.js <-- will be created by spm-build
Learn more on package.json.
Install spm-build with npm:
$ npm install spm-build -g
var builder = require('spm-build')
It will load all tasks of the default build. Including:
If you are using
spm-build to run the grunt task, you can also load these tasks with: