spm
have a collection of commands for package lifecycle management.
There is a simple list of them, and you can type spm [command] -h
to learn more details.
Init a package from template.
Login for getting permission.
Install dependencies and engines to local folder.
Publish a package.
Unpublish a package.
Show information by package name.
Search packages.
Show the dependencies tree of the package.
Documentation management toolkit.
-
spm doc
Alias for
spm doc watch
. -
spm doc watch
Build and start a watching server of demo site at http://127.0.0.1:8000 .
-
spm doc build
Build a demo package to
_site
folder. -
spm doc publish
Publish
_site
folder to spmjs.io. The demo site url ishttp://docs.spmjs.io/{{package-name}}
Run test case in phantomjs.
Build package for browser.