@ibrahim-rahhal/generator-sourcejs
v0.4.2
Published
Yeoman generator for SourceJS http://sourcejs.com
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 sourcejsNote: before running mentioned commands, please be sure that you have Git and Node.js installed.
Commands
yo sourcejsEntry point to all commands. Also used for new SourceJS instance initialization.
Options
yo sourcejs --branch 0.5.3-devrepo- 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 newuserfolderinit-branch- set init repo from where to clone newuserfolder
Create new Spec
yo sourcejs:specCreates 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:middlewareCreates 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.

