https://github.com/kossnocorp/babel-hubot
Minimalistic Hubot wrapper that allows to write scripts using power of ES 2015
https://github.com/kossnocorp/babel-hubot
Last synced: 15 days ago
JSON representation
Minimalistic Hubot wrapper that allows to write scripts using power of ES 2015
- Host: GitHub
- URL: https://github.com/kossnocorp/babel-hubot
- Owner: kossnocorp
- License: mit
- Created: 2015-06-30T06:19:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T06:33:45.000Z (over 9 years ago)
- Last Synced: 2025-02-07T12:42:34.244Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# babel-hubot
[](http://badge.fury.io/js/babel-hubot)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`):
```shell
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:```diff
--- 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:```json
{
"presets": ["es2015"]
}
```## License
MIT