Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Yeoman generator for Tachi.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
controller
test
testHelpers
view
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
package.json

README.md

Generator-tachi

Build Status

A Yeoman generator for Tachi.

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator: npm install -g generator-tachi
  • Make a new directory for your Tachi application: mkdir tachi; cd tachi
  • Run: yo tachi

Notes

  • It's assumed that you'll want to use Mocha and ShouldJS for your unit testing.
  • No Bower packages will be configured.
  • Grunt is not currently configured.

Generators

Available generators:

Note: Generators are to be run from the root directory of your app.

App

Sets up a new Tachi app, generating some basic boilerplate that'll get you up and running. The app generator also optionally installs a Twitter Bootstrap demo, which contains a number of quick-start views, and a demo Controller.

Example:

yo tachi

Controller

Generates a controller in ./Controllers, and a matching test scaffold in ./test/Controllers.

Example:

yo tachi:controller demo

Produces ./Controllers/DemoController.js:

module.exports = function DemoController() {
  // ...
};

Testing

The Tachi generator is configured to hook Mocha into npm. This means you can run your tests by just doing:

npm test

License

Copyright (c) 2013 Ed J ed@ed-j.co.uk

MIT License

Something went wrong with that request. Please try again.