Skip to content

Commit 1d9294a

Browse files
committed
First attempt to integrate Babel 6
1 parent efcd8b8 commit 1d9294a

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

.babelrc

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
{
2-
"stage": 0,
3-
"loose": "all"
2+
"presets": ["es2015", "react", "stage-0"],
3+
"plugins": [
4+
"transform-react-jsx",
5+
"transform-export-extensions",
6+
"transform-class-constructor-call",
7+
"transform-es2015-spread",
8+
"transform-es2015-arrow-functions",
9+
"transform-es2015-modules-commonjs",
10+
"transform-es2015-parameters",
11+
"transform-es2015-block-scoping",
12+
"transform-es2015-classes",
13+
"syntax-export-extensions",
14+
"syntax-class-properties",
15+
"syntax-class-constructor-call",
16+
"syntax-jsx",
17+
"check-es2015-constants",
18+
"transform-es2015-destructuring",
19+
"transform-es2015-literals",
20+
"transform-es2015-shorthand-properties",
21+
"transform-es2015-template-literals"
22+
]
423
}

package.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"clean": "rimraf lib dist coverage",
1313
"lint": "eslint src test",
1414
"prepublish": "npm run clean && npm run build",
15-
"test": "mocha --compilers js:babel/register --recursive --require ./test/setup.js",
15+
"test": "mocha --compilers js:babel-core/register --recursive --require ./test/setup.js",
1616
"test:watch": "npm test -- --watch",
1717
"test:cov": "babel-node ./node_modules/isparta/bin/isparta cover ./node_modules/mocha/bin/_mocha -- --recursive"
1818
},
@@ -38,10 +38,32 @@
3838
},
3939
"homepage": "https://github.com/gaearon/react-redux",
4040
"devDependencies": {
41-
"babel": "^5.8.21",
42-
"babel-core": "^5.8.22",
43-
"babel-eslint": "^3.1.15",
44-
"babel-loader": "^5.3.2",
41+
"babel-core": "^6.1.20",
42+
"babel-eslint": "^5.0.0-beta4",
43+
"babel-loader": "^6.2.0",
44+
"babel-plugin-check-es2015-constants": "^6.3.13",
45+
"babel-plugin-syntax-class-constructor-call": "^6.3.13",
46+
"babel-plugin-syntax-class-properties": "^6.3.13",
47+
"babel-plugin-syntax-export-extensions": "^6.3.13",
48+
"babel-plugin-syntax-jsx": "^6.0.14",
49+
"babel-plugin-transform-class-constructor-call": "^6.3.13",
50+
"babel-plugin-transform-es2015-arrow-functions": "^6.0.14",
51+
"babel-plugin-transform-es2015-block-scoping": "^6.3.13",
52+
"babel-plugin-transform-es2015-classes": "^6.3.15",
53+
"babel-plugin-transform-es2015-destructuring": "^6.3.15",
54+
"babel-plugin-transform-es2015-literals": "^6.3.13",
55+
"babel-plugin-transform-es2015-modules-commonjs": "^6.3.13",
56+
"babel-plugin-transform-es2015-parameters": "^6.3.13",
57+
"babel-plugin-transform-es2015-shorthand-properties": "^6.3.13",
58+
"babel-plugin-transform-es2015-spread": "^6.0.14",
59+
"babel-plugin-transform-es2015-template-literals": "^6.3.13",
60+
"babel-plugin-transform-export-extensions": "^6.3.13",
61+
"babel-plugin-transform-react-jsx": "^6.0.18",
62+
"babel-polyfill": "^6.3.14",
63+
"babel-preset-es2015": "^6.3.13",
64+
"babel-preset-react": "^6.3.13",
65+
"babel-preset-stage-0": "^6.3.13",
66+
"babel-register": "^6.3.13",
4567
"eslint": "^1.7.1",
4668
"eslint-config-rackt": "1.1.0",
4769
"eslint-plugin-react": "^3.6.3",

0 commit comments

Comments
 (0)