0.0.10 • Published 11 years ago
generator-es v0.0.10
generator-es
A yeoman-generator for ECMA Script apps using Babel ( ES6 / ES2015 )
What's included?
- Build to ES5 (including babel-runtime)
- ESLint
- Unit testing using Mocha & Chai (w/Babel)
- Code coverage with Istanbul, Coveralls & Travis
- NPM ignores source & tests
- GIT ignores build
- Automatically build on changes (watch)
Installation
Install globally yeoman and this package
npm install -g yo generator-esCreate your project's directory and CD into it.
mkdir project && cd $_
yo esRun Tests
Just write ES6 files (JS) inside the test folder and then run:
npm testif you want to generate code coverage reports, only enable the production environment var:
NODE_ENV=production npm testBuilding
Just write ES6 files (JS) inside the src folder and then run:
npm run buildWatching
It automatically builds when you make changes inside the src and test folders.
npm run watch