Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 02b0f38

Browse files
committed
Merge pull request #17 from colinmeinke/master
Update to Babel 6
2 parents 516b859 + d752854 commit 02b0f38

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.babelrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"stage": 0,
3-
"loose": "all"
2+
"plugins": ["transform-decorators-legacy"],
3+
"presets": ["es2015-loose", "stage-0", "react"]
44
}

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"no-console": 0,
1313
// Temporarily disabled due to babel-eslint issues:
1414
"block-scoped-var": 0,
15+
"no-dupe-keys": 0,
1516
"padded-blocks": 0,
1617
"no-param-reassign": 0,
1718
},

examples/.babelrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"stage": 0
3-
}
2+
"presets": ["es2015-loose", "stage-0", "react"]
3+
}

examples/package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
},
2929
"homepage": "https://github.com/gaearon/react-hot-boilerplate",
3030
"devDependencies": {
31-
"babel-core": "^5.4.7",
32-
"babel-eslint": "^3.1.9",
33-
"babel-loader": "^5.1.2",
31+
"babel-core": "^6.3.17",
32+
"babel-eslint": "^4.1.6",
33+
"babel-loader": "^6.2.0",
34+
"babel-preset-es2015-loose": "^6.1.3",
35+
"babel-preset-stage-0": "^6.3.13",
36+
"babel-preset-react": "^6.3.13",
3437
"eslint-plugin-react": "^2.3.0",
3538
"react-hot-loader": "^1.2.7",
3639
"webpack": "^1.9.6",

package.json

+11-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"clean": "rimraf lib",
88
"build": "babel src --optional runtime --out-dir lib",
99
"lint": "eslint src test examples",
10-
"test": "NODE_ENV=test mocha --compilers js:babel/register --recursive",
11-
"test:watch": "NODE_ENV=test mocha --compilers js:babel/register --recursive --watch",
10+
"test": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive",
11+
"test:watch": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch",
1212
"test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive",
1313
"prepublish": "npm run lint && npm run test && npm run clean && npm run build"
1414
},
@@ -31,10 +31,14 @@
3131
},
3232
"homepage": "https://github.com/chibicode/react-json-tree",
3333
"devDependencies": {
34-
"babel": "^5.5.8",
35-
"babel-core": "^5.6.18",
36-
"babel-eslint": "^3.1.15",
37-
"babel-loader": "^5.1.4",
34+
"babel-cli": "^6.3.17",
35+
"babel-core": "^6.3.17",
36+
"babel-eslint": "^4.1.6",
37+
"babel-loader": "^6.2.0",
38+
"babel-plugin-transform-decorators-legacy": "^1.3.3",
39+
"babel-preset-es2015-loose": "^6.1.3",
40+
"babel-preset-stage-0": "^6.3.13",
41+
"babel-preset-react": "^6.3.13",
3842
"eslint": "^0.23",
3943
"eslint-config-airbnb": "0.0.6",
4044
"eslint-plugin-react": "^2.3.0",
@@ -47,7 +51,7 @@
4751
"react": ">=0.13.1 || >=0.14.0-beta3"
4852
},
4953
"dependencies": {
50-
"babel-runtime": "^5.8.20",
54+
"babel-runtime": "^6.3.13",
5155
"react-mixin": "^1.7.0"
5256
}
5357
}

0 commit comments

Comments
 (0)