Minimalistic Hubot wrapper that allows to write scripts using power of ES 2015.
Install (for Babel < 6, use npm install babel-hubot#0.1 babel#5 --save
):
npm install babel-hubot babel-core coffee-script babel-preset-es2015 --save
Open local bin/hubot
and replace regular hubot
binary with babel-hubot
wrapper:
--- a/bin/hubot
+++ b/bin/hubot
@@ -3,4 +3,4 @@
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
-exec node_modules/.bin/hubot "$@"
+exec node_modules/.bin/babel-hubot "$@"
Then you might want to enable ES 2015, to do that, modify or create
.babelrc
file:
{
"presets": ["es2015"]
}
MIT