A Yeoman generator for coreJS projects.
- Install
yo
,grunt
,bower
,generator-corejs
:
npm install -g grunt bower yo generator-corejs
- Make a new directory, and
cd
into it:
mkdir my-new-project && cd $_
- Run
yo corejs
, optionally passing an app name:
yo corejs [app-name]
Run grunt
for building and grunt server
for preview. For more details to manage your corejs project with grunt see this documentation.
Available generators:
Sets up a new coreJS app, generating all the boilerplate you need to get started. The app generator also optionally installs kiUI and additional coreJS modules.
Example:
yo corejs
Generates a module boilerplate inside coreJS project. This new module contains its own controller and entry point, and build its scaffolding as how the user decides.
Example:
yo corejs:module mymodule
Produces app/scripts/mymodule/
:
.
+-- controller.js
+-- dispatcher.js
+-- start.js
+-- css
| +-- mymodule.scss
| +-- main.scss
+-- views
| +-- defaultView.js
+-- templates
| +-- default.html
+-- res
| +--config.json