ES2015 projects with BabelJS, Mocha and Istanbul
npm install generator-es2015




Generate ES2015 projects that transpile your code using
BabelJS and can directly be tested with
Mocha and Istanbul.
This generator assumes you have nodejs and npm installed (get it at
nodejs.org), as well as
yeoman (get it with [sudo] npm i -g yo).
Install the es2015 generator globally to quickly start new projects
wherever you want:
``bash`
[sudo] npm i -g generator-es2015
Then start the new project with
`bash`
yo es2015
yo es2015 creates a project where your es2015 sources are located insrc/main and the es2015 tests are located in src/test.
`bash`
npm start
compiles everything from src/main to lib/ and everything fromsrc/test to test/.
`bash`
npm test
does the same but also runs the tests from test/ against the generatedapp/` (so don't worry if you don't get 100% test coverage, babeljs
code in
adds code to make your es2015 stuff happen in es5).
This project is MIT-licensed.