Skip to content

Commit 6577fb6

Browse files
committed
Use babel 6
- Fix travis.yml to be able to use babel
1 parent 4244bf4 commit 6577fb6

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"stage": 0,
3-
"loose": "all"
2+
"presets": ["es2015", "stage-0"]
43
}

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
language: node_js
2+
sudo: false
3+
cache:
4+
directories:
5+
- node_modules
26
node_js:
3-
- "iojs"
7+
- "4"
8+
- "5"
9+
before_install:
10+
- npm install -g babel-cli

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "Thunk middleware for Redux.",
55
"main": "lib/index.js",
66
"scripts": {
7-
"prepublish": "rimraf lib && babel src --out-dir lib",
8-
"test": "mocha --compilers js:babel/register --reporter spec test/*.js"
7+
"compile": "babel src --out-dir lib",
8+
"prepublish": "rimraf lib && npm run compile",
9+
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js"
910
},
1011
"repository": {
1112
"type": "git",
@@ -22,12 +23,15 @@
2223
"author": "Dan Abramov <dan.abramov@me.com>",
2324
"license": "MIT",
2425
"devDependencies": {
25-
"babel": "^5.6.14",
26-
"babel-core": "^5.6.15",
27-
"babel-eslint": "^3.1.20",
26+
"babel": "^6.1.18",
27+
"babel-core": "^6.2.1",
28+
"babel-eslint": "^5.0.0-beta4",
29+
"babel-cli": "^6.2.0",
30+
"babel-preset-es2015": "^6.1.18",
31+
"babel-preset-stage-0": "^6.1.18",
2832
"chai": "^3.2.0",
29-
"eslint": "^0.24.0",
30-
"eslint-config-airbnb": "0.0.6",
33+
"eslint": "^1.10.2",
34+
"eslint-config-airbnb": "1.0.2",
3135
"mocha": "^2.2.5",
3236
"rimraf": "^2.4.3"
3337
}

0 commit comments

Comments
 (0)