For SourceJS initialization, bootstraping new Specs, plugins and other platform related items. Soon will be replaced by sourcejs-cli
(source#144).
npm i -g yo generator-sourcejs
cd sourcejs-folder
yo sourcejs
Note: before running mentioned commands, please be sure that you have Git and Node.js installed.
yo sourcejs
Entry point to all commands. Also used for new SourceJS instance initialization.
yo sourcejs --branch 0.5.3-dev
repo
- set repo name from where clone SourceJSbranch
- set branchrepo-user
- set repo owner (github.com/user/repo)init-repo
- set init repo from where to clone newuser
folderinit-branch
- set init repo from where to clone newuser
folder
yo sourcejs:spec
Creates new Spec page in current folder. Recommended path to run this command - sourcejs/user/specs
.
yo sourcejs:plugin
yo sourcejs:middleware
Creates new SourceJS plugin. Run this command in any folder outside sourcejs
. Then use npm link
(docs) to install new plugin to your SourceJS instance.
Read more about Plugin development in docs http://sourcejs.com/docs/api/plugins.