Skip to content

Commit

Permalink
Babel 6 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
justingreenberg committed Dec 1, 2015
1 parent 181d9b7 commit e4769dc
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 28 deletions.
13 changes: 6 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"stage": 0,
"presets": ["react", "es2015"],
"env": {
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
Expand All @@ -13,8 +12,8 @@
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}
}
}]
]
}
}
}
}
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"babel/generator-star-spacing": 1,
"babel/new-cap": 1,
"babel/object-shorthand": 1,
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2
},
"plugins": [
"babel",
"react"
]
}
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
># Babel 6 Not Supported Yet
>We don’t support Babel 6 yet.
>If you’d like, you can [contribute to help make it happen](https://github.com/gaearon/babel-plugin-react-transform/issues/46).

React Transform Boilerplate
=====================

### _With Babel 6 Support_

A *new* Webpack boilerplate with:

* hot reloading React components;
Expand Down
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<title>React Transform Boilerplate</title>
</head>
<body>
<div id='root'>
</div>
<div id="root"></div>
<script src="/static/bundle.js"></script>
</body>
</html>
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A new Webpack boilerplate with hot reloading React components, and error handling on module and component level.",
"scripts": {
"clean": "rimraf dist",
"build:webpack": "NODE_ENV=production webpack --config webpack.config.prod.js",
"build:webpack": "NODE_ENV=production webpack --progress --colors --config webpack.config.prod.js",
"build": "npm run clean && npm run build:webpack",
"start": "node devServer.js",
"lint": "eslint src"
Expand Down Expand Up @@ -33,23 +33,26 @@
},
"homepage": "https://github.com/gaearon/react-transform-boilerplate",
"devDependencies": {
"babel-core": "^5.4.7",
"babel-eslint": "^3.1.9",
"babel-loader": "^5.1.2",
"babel-plugin-react-transform": "^1.1.1",
"eslint": "^1.3.1",
"eslint-plugin-react": "^2.3.0",
"babel-core": "^6.2.1",
"babel-eslint": "^5.0.0-beta4",
"babel-loader": "^6.2.0",
"babel-plugin-react-transform": "git://github.com/justingreenberg/babel-plugin-react-transform.git#master",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.18",
"eslint": "^1.10.2",
"eslint-plugin-babel": "^3.0.0",
"eslint-plugin-react": "^3.11.1",
"express": "^4.13.3",
"react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.0",
"react-transform-hmr": "^1.0.1",
"redbox-react": "^1.0.1",
"rimraf": "^2.4.3",
"webpack": "^1.9.6",
"webpack-dev-middleware": "^1.2.0",
"webpack-hot-middleware": "^2.0.0"
"webpack": "^1.12.9",
"webpack-dev-middleware": "^1.4.0",
"webpack-hot-middleware": "^2.6.0"
},
"dependencies": {
"react": "^0.14.0",
"react-dom": "^0.14.0"
"react": "^0.14.2",
"react-dom": "^0.14.2"
}
}

0 comments on commit e4769dc

Please sign in to comment.