generator-flight / 0.8.0 last updated 2 years ago created on May 21st 2013
Install
npm install --save generator-flight
Clone
git clone git@github.com:flightjs/generator-flight.git
dependencies
show all 464
| main |
|
yeoman-generator | 0.16.0 | BSD 2-Clause |
|
|
yo | 1.7.0 | BSD 2-Clause |
maintainers
versions
16 total
| 0.8.0 | 2 years ago | necolas |
| 0.7.3 | 2 years ago | necolas |
| 0.7.2 | 2 years ago | necolas |
| 0.7.1 | 2 years ago | necolas |
| 0.7.0 | 2 years ago | necolas |
| 0.6.1 | 2 years ago | necolas |
| 0.6.0 | 2 years ago | necolas |
| 0.5.2 | 3 years ago | necolas |
| 0.5.1 | 3 years ago | necolas |
| 0.5.0 | 3 years ago | necolas |
| 0.4.1 | 3 years ago | necolas |
| 0.4.0 | 3 years ago | necolas |
| 0.3.0 | 3 years ago | necolas |
| 0.2.1 | 3 years ago | necolas |
| 0.2.0 | 3 years ago | necolas |
| 0.1.0 | 3 years ago | necolas |
readme
Flight generator
A Yeoman generator for Flight, Twitter's client-side JavaScript framework. Get up and running with everything you need to create an application.
NOTE: A separate Flight package generator is available for creating standalone Flight components.
Recommended setup
Install Node.js (which comes with npm). It's best to have npm version 1.2.x or above installed.
Next, globally install the Flight generator. This will automatically install Bower and Yo as global dependencies. These tools will help manage your dependencies and generate the boilerplate Flight application.
Make a new directory, and cd into it:
You're now ready to generate an app!
Main generator
To generate a Flight-based application:
N.B. All your Node and client-side dependencies will be installed
automatically unless you include the --skip-install option.
All generators and their output
Available generators (to be run in the root directory of a project).
flight <app-name>(akaflight:app)flight:component <component-name>flight:mixin <mixin-name>flight:page <page-name>flight:all
flight:app
Scaffolds a Flight application file structure, installs all the library code you need, and correctly configures your test setup. The app generator will prompt you to optionally install Bootstrap or Normalize.css.
Example:
Produces:
Locally installed software
Automatically installs all the Flight framework dependencies, and sets up a Node-based toolchain for your development workflow.
via Bower
- Flight (and its dependencies: ES5 Shim, jQuery)
- RequireJS
- Jasmine jQuery extensions
- Jasmine Flight extensions
- (optional) Bootstrap
- (optional) Normalize.css
via npm
- Flight generator (installed as a local dependency)
- Gulp task runner
- Karma unit test runner
- Node-Static file server
flight:component
Generates a component in app/js/component.
Example:
Produces app/js/component/tweet_box.js:
And the test file test/spec/component/tweet_box.spec.js:
flight:mixin
Generates a mixin component in app/js/component.
Example:
Produces app/js/component/with_tweet_actions.js:
And the test file test/spec/component/with_tweet_box.spec.js:
flight:page
Generates a page component in app/js/page.
Example:
Produces app/js/page/settings.js:
flight:all
Shortcut that runs flight:app, flight:component my_component, and
flight:mixin my_mixin.
Developing your application
The generated application's README contains instructions on how to run the tests, server, and other tasks.
Contributing to this project
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
Authors
- Nicolas Gallagher
License
Copyright 2013 Twitter, Inc and other contributors.
Licensed under the MIT License.