Skip to content

Commit f15c691

Browse files
committed
Merge pull request #37 from Syati/master
Use babel 6
2 parents 7b76e36 + 6577fb6 commit f15c691

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
@@ -8,8 +8,9 @@
88
"src"
99
],
1010
"scripts": {
11-
"prepublish": "rimraf lib && babel src --out-dir lib",
12-
"test": "mocha --compilers js:babel/register --reporter spec test/*.js"
11+
"compile": "babel src --out-dir lib",
12+
"prepublish": "rimraf lib && npm run compile",
13+
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js"
1314
},
1415
"repository": {
1516
"type": "git",
@@ -26,12 +27,15 @@
2627
"author": "Dan Abramov <dan.abramov@me.com>",
2728
"license": "MIT",
2829
"devDependencies": {
29-
"babel": "^5.6.14",
30-
"babel-core": "^5.6.15",
31-
"babel-eslint": "^3.1.20",
30+
"babel": "^6.1.18",
31+
"babel-core": "^6.2.1",
32+
"babel-eslint": "^5.0.0-beta4",
33+
"babel-cli": "^6.2.0",
34+
"babel-preset-es2015": "^6.1.18",
35+
"babel-preset-stage-0": "^6.1.18",
3236
"chai": "^3.2.0",
33-
"eslint": "^0.24.0",
34-
"eslint-config-airbnb": "0.0.6",
37+
"eslint": "^1.10.2",
38+
"eslint-config-airbnb": "1.0.2",
3539
"mocha": "^2.2.5",
3640
"rimraf": "^2.4.3"
3741
}

0 commit comments

Comments
 (0)