Giter Club home page Giter Club logo

generator-chaplin's Introduction

generator-chaplin Build Status

Chaplin

Generate scaffolds for Chaplin.js using Yeoman. Expedite the process of creating single page web apps.

Features:

  • Provides a working Chaplin.js boilerplate application powered by Yeoman, Grunt, and Bower
  • Generate models, views, controllers, etc. on the fly
  • Coffeescript source maps out of the box
  • Livereload while developing

Installation

  1. Install Dependencies

     npm install -g bower coffee-script grunt-cli yo generator-chaplin
    
  2. Create a new project folder

  3. Initiate the generator in your project folder

     yo chaplin
    

Scaffolding

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.

Controllers

yo chaplin:controller 'mycontroller'

This would create app/controllers/mycontroller.coffee (assuming no controller prefix in this case).

Models & Collections

Models

yo chaplin:model 'mymodel'

This would create app/models/mymodel.coffee.

Collections

yo chaplin:collection 'mycollection'

This would create app/models/mycollection.coffee.

Views & CollectionViews

Views

yo chaplin:view 'myview'

This would create app/views/myview.coffee.

CollectionViews

yo chaplin:view 'mycollectionview'

This would create app/views/mycollectionview.coffee.

Templates

Creates a handlebars tempalte file.

yo chaplin:templates 'foo'

This would create app/templates/foo.hbs

Run the server

grunt s

Destroy a project

yo chaplin:destroy

Testing

npm install -g generator-generator
npm test

License

MIT License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.