0.0.4 • Published 11 years ago
generator-esnext v0.0.4
ES6 Generator
Yeoman generator for projects that use ECMAScript 6.
Table of Contents
Installation
To install Yeoman:
npm install -g yoTo install the ES6 generator:
npm install -g generator-esnextUsage
Using the ES6 generator is simple:
yo esnextTo run tests:
npm testTo build your project:
npm run buildOptions
Would you like to lint with JSHint?
Yes to include linting with JSHint in the npm test task.
What testing framework would you like to use?
Pick a testing framework to use in the npm test task. Only supports Jasmine for now.
Structure
Save .js files to appropriate modules in the src directory. Save tests in each module's tests directory.
Example file tree:
.
├── build
│ └── my-app.js
├── gruntfile.js
├── my-app.html
├── lib
│ └── traceur-runtime
│ ├── MIT-LICENSE.txt
│ ├── traceur-runtime.min.js
│ └── traceur-runtime.min.map
├── package.json
└── src
└── my-app
├── app.js
└── tests
└── app_tests.js