1.0.1 • Published 9 years ago
generator-hubot-script-babel v1.0.1
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-babelThen generate your new project:
yo hubot-script-babelUsage
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 ES5When 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