GitXplorerGitXplorer
k

babel-hubot

public
4 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
a285806f99c80998eaf3dcd188156d63237171c0

Update docs (closes #2)

kkossnocorp committed 9 years ago
Unverified
9e4d584653766a984234babbbfb476c7d8a6edf9

Adjust code style

kkossnocorp committed 9 years ago
Unverified
408f4416d16d7c8cc64230bfa9fba6cd65b6deb0

Upgrade to v0.2.0

kkossnocorp committed 9 years ago
Unverified
55682ec5c54da8ec6cab83895d0d176d6e69a0df

Merge pull request #1 from antoligy/master

kkossnocorp committed 9 years ago
Unverified
83851780608ccf80f1e9994c2a9569457b8c0bf3

Use babel-core

LLoganBarnett committed 9 years ago
Unverified
57c1b85e95b64433999bbb2c9b1c5eef149303a2

Add babel package to installation instructions

kkossnocorp committed 10 years ago

README

The README file for this repository.

babel-hubot

npm version

Minimalistic Hubot wrapper that allows to write scripts using power of ES 2015.

Installation

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"]
}

License

MIT