spm-init is a scaffolding tool used to automate project creation.
npm install spm-init -g
spm-init [template]
If you have installed spm2:
spm init [template]
The default template path is ~/.spm/init
, you can config ~/.spm/spmrc
[init]
template = ~/.spm-init
Install a template:
if git url is git://github.com/aralejs/template-arale.git
, you can
spm-init --install aralejs/template-arale
spm-init is compatible with grunt-init, get more information at grunt project scaffolding.
-
update
fetch index.json from server which include global template.
$ spm-init --update
-
install
install template
$ spm-init --install aralejs/template-arale.git // alias defined in index.json $ spm-init --install arale
-
list
show templates in index.json
$ spm-init --list
-
upgrade
upgrade templates
$ spm-init --upgrade arale