@ibrahim-rahhal/generator-sourcejs
v0.4.2
Published
Yeoman generator for SourceJS http://sourcejs.com
Downloads
70
Maintainers
Readme
Yeoman generator for SourceJS
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.
Commands
yo sourcejs
Entry point to all commands. Also used for new SourceJS instance initialization.
Options
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
Create new Spec
yo sourcejs:spec
Creates new Spec page in current folder. Recommended path to run this command - sourcejs/user/specs
.
Create new Plugin and Middleware
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.