Wynn Netherland changelog.com/posts

capt: Command line tool for creating Backbone.js apps

If you set out to use Backbone.js for a client-centric application, one thing you might miss coming from a server-side MVC framework is some basic file structure, dependency managment, and generator support. To solve this problem Ben Nolan has created Capt.

Capt is aimed at developers building single page, stand alone applications as well as server-backed applications using Node.js, bundling the following projects and languages:

Languages

  • Coffeescript
  • JavaScript
  • SCSS
  • LESS

Testing frameworks

  • Qunit
  • Jasmine [planned]

Libraries

  • jQuery
  • Backbone.js
  • Underscore.js
  • json2.js

Installation

You can grab Capt from npm

npm install capt

To check your installation and see usage help, just run capt in your
terminal:

Usage:

capt new projectname 
  - create a new project

capt server
  - serve the current project on port 3000

capt watch
  - watch the current project and recompile as needed

There’s also generators to create Backbone models and controllers:

capt generate model <model name>

capt generate controller <controller name>

Capt is still in alpha but is under active development. Got ideas? Why
not contribute?

[Source on GitHub] [Web
site
]


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00