Generate scaffolds for Chaplin.js using Yeoman. Expedite the process of creating single page web apps.
Features:
Install Dependencies
npm install -g bower coffee-script grunt-cli yo generator-chaplin
Create a new project folder
Initiate the generator in your project folder
yo chaplin
grunt w
On changing a file, the watch command will update the build on the fly and trigger livereload.
Once you have generated an app, you can add additional scaffolding by executing these commands from the root of your project.
All scaffolding supports deep paths, so you could name a file foo
or foo/bar/baz
, which would end up as foo/bar/baz.coffee
. Don't worry about the file extension, this is take care of automatically.
yo chaplin:controller 'mycontroller'
This would create app/controllers/mycontroller.coffee
(assuming no controller prefix in this case).
yo chaplin:model 'mymodel'
This would create app/models/mymodel.coffee
.
yo chaplin:collection 'mycollection'
This would create app/models/mycollection.coffee
.
yo chaplin:view 'myview'
This would create app/views/myview.coffee
.
yo chaplin:view 'mycollectionview'
This would create app/views/mycollectionview.coffee
.
Creates a handlebars tempalte file.
yo chaplin:templates 'foo'
This would create app/templates/foo.hbs
yo chaplin:destroy
npm install -g generator-generator
npm test