generator-hubot-script-babel

1.0.1 • Public • Published

generator-hubot-script-babel

NPM version Build Status Dependency Status Coverage Status

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

Package Sidebar

Install

npm i generator-hubot-script-babel

Weekly Downloads

11

Version

1.0.1

License

MIT

Last publish

Collaborators

  • munkyjunky