0.1.0 • Published 11 years ago
generator-spm v0.1.0
generator-spm
A SPM Project generator for Yeoman.
Install
$ npm install yo -g
$ npm install generator-spm -gUsage
Init project
$ yo spmIf choosing complex Project Type, you can add mod and page seperatly.
# add mod
$ yo spm:mod foo
# add page
$ yo spm:page barRun
$ npm install spm-server -g
$ spm-serverOptions
Include Mode
- relative
- all
- standalone
Notice: seajs will be included in mode relative and all.
Project Type
Simple
- index.js
- index.css
- index.html
- package.jsonComplex
+ mods
+ modA
- index.js
- index.css
+ modB
- index.js
+ pages
- pageA.html
- pageA.js
- pageA.css
- package.json