generator-babel-standard
v1.1.1
Published
Yeoman generator for simple node modules with babel transpiling and code style with feross/standard
Downloads
11
Readme
generator-babel-standard
Yeoman generator for simple node modules with babel transpiling and code style with feross/standard.
What do I get?
This generator scaffolds a simple node module with all the bells and whistles.
ES6 with Babel
Write your code in the latest version of JavaScript and let babel transpile it to compatible ES5 code for you.
Code style and linting with Standard
Write your JavaScript standard style.
Extensive build tooling
Transpile your code, run your tests, or start a file watcher that does both of those on every file change. Extensive build tooling implemented via npm run scripts.
See for yourself!
Check out the example folder for a sneak peak at a generated module.
Getting Started
Install Yeoman:
npm install -g yo
Install generator-babel-standard
:
npm install -g generator-babel-standard
Finally, initiate the generator:
yo babel-standard
Contributing
Build
npm run build
Test
npm test
Watch
To watch for changes, build them and run the tests:
npm run watch
Credits
- Generator heavily inspired by / borrowed from sindresorhus' generator-nm.
- npm script style tooling inspired by substack's task automation with npm run
License
MIT © James Bunt