generator-hubot-script-babel
v1.0.1
Published
A generator for hubot scripts that use babel and mocha
Downloads
34
Maintainers
Readme
generator-hubot-script-babel
A generator for hubot scripts using babel, es2015, and mocha
Installation
First, install Yeoman and generator-hubot-script-babel using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-hubot-script-babel
Then generate your new project:
yo hubot-script-babel
Usage
This is a generator for hubot scripts which are written in ES2015 JavaScript. It also provides a basic testing setup for your script, using the mocha, chai, and hubot mock adapter.
npm test # run tests
npm run build # convert your ES2015 to ES5
When using npm publish
the included npm prepublish script and .npmignore will run your ES2015 JavaScript through babel, and exclude any build files from the published package.
License
MIT © Simon Wears