Skip to content

Commit bf720b6

Browse files
committed
update to babel 6
1 parent a3fbdde commit bf720b6

File tree

7 files changed

+38
-18
lines changed

7 files changed

+38
-18
lines changed

.babelrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2-
"stage": 0,
3-
"loose": "all"
2+
"presets": ["es2015-loose", "stage-0", "react"],
3+
"env": {
4+
"development": {
5+
"presets": ["react-hmre"]
6+
}
7+
}
48
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# react-flexbox-grid
1+
# react-flexbox-grid
22
[![npm version](https://badge.fury.io/js/react-flexbox-grid.svg)](https://badge.fury.io/js/react-flexbox-grid)
33
[![Build Status](https://travis-ci.org/roylee0704/react-flexbox-grid.svg)](https://travis-ci.org/roylee0704/react-flexbox-grid)
44
[![NPM Status](http://img.shields.io/npm/dm/react-flexbox-grid.svg?style=flat-square)](https://www.npmjs.org/package/react-flexbox-grid)

doc/.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": ["es2015-loose", "stage-0", "react"],
3+
"env": {
4+
"development": {
5+
"presets": ["react-hmre"]
6+
}
7+
}
8+
}

doc/app/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'babel-polyfill';
12
import React from 'react';
23
import ReactDOM from 'react-dom';
34
import Home from './components/home';

doc/package.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@
2626
},
2727
"devDependencies": {
2828
"autoprefixer": "^6.0.3",
29-
"babel": "^5.8.23",
30-
"babel-core": "^5.8.23",
31-
"babel-eslint": "^4.1.3",
32-
"babel-loader": "^5.3.2",
33-
"babel-plugin-react-transform": "^1.1.1",
29+
"babel-cli": "^6.4.0",
30+
"babel-core": "^6.4.0",
31+
"babel-eslint": "^5.0.0-beta6",
32+
"babel-loader": "^6.2.1",
33+
"babel-plugin-react-transform": "^2.0.0",
34+
"babel-polyfill": "^6.3.14",
35+
"babel-preset-es2015-loose": "^6.1.4",
36+
"babel-preset-react": "^6.3.13",
37+
"babel-preset-react-hmre": "^1.0.1",
38+
"babel-preset-stage-0": "^6.3.13",
3439
"cross-env": "^1.0.4",
3540
"css-loader": "^0.21.0",
3641
"eslint-config-airbnb": "^1.0.0",
@@ -46,8 +51,6 @@
4651
"node-sass": "^3.3.3",
4752
"postcss-loader": "^0.7.0",
4853
"raw-loader": "^0.5.1",
49-
"react-transform-catch-errors": "^1.0.0",
50-
"react-transform-hmr": "^1.0.1",
5154
"redbox-react": "^1.1.1",
5255
"sass-loader": "^3.0.0",
5356
"style-loader": "^0.13.0",

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function karmaConfig(config) {
77
frameworks: ['mocha'],
88
files: [
99
'./node_modules/phantomjs-polyfill/bind-polyfill.js',
10-
'./node_modules/babel-core/browser-polyfill.js',
10+
'./node_modules/babel-polyfill/browser.js',
1111
'tests.webpack.js'
1212
],
1313
reporters: ['dots'],

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,16 @@
2121
],
2222
"devDependencies": {
2323
"autoprefixer": "^6.0.3",
24-
"babel": "^5.8.23",
25-
"babel-core": "^5.8.23",
26-
"babel-eslint": "^4.1.5",
27-
"babel-loader": "^5.3.2",
28-
"babel-plugin-react-transform": "^1.1.1",
24+
"babel-cli": "^6.4.0",
25+
"babel-core": "^6.4.0",
26+
"babel-eslint": "^5.0.0-beta6",
27+
"babel-loader": "^6.2.1",
28+
"babel-plugin-react-transform": "^2.0.0",
29+
"babel-polyfill": "^6.3.14",
30+
"babel-preset-es2015-loose": "^6.1.4",
31+
"babel-preset-react": "^6.3.13",
32+
"babel-preset-react-hmre": "^1.0.1",
33+
"babel-preset-stage-0": "^6.3.13",
2934
"classnames": ">=2.1.2",
3035
"cpx": "^1.2.1",
3136
"cross-env": "^1.0.4",
@@ -54,8 +59,6 @@
5459
"react-addons-test-utils": "^0.14.0",
5560
"react-dom": "^0.14.3",
5661
"react-hot-loader": "^1.3.0",
57-
"react-transform-catch-errors": "^1.0.0",
58-
"react-transform-hmr": "^1.0.1",
5962
"redbox-react": "^1.1.1",
6063
"rimraf": "^2.4.4",
6164
"sass-loader": "^3.1.2",
@@ -81,6 +84,7 @@
8184
"license": "MIT",
8285
"peerDependencies": {
8386
"flexboxgrid": "^6.3.0",
87+
"babel-polyfill": ">=6.0.0",
8488
"react": "^0.14.3"
8589
}
8690
}

0 commit comments

Comments
 (0)