From ae8ca4d8a15c0b8d1613f4b2b06ede205649f28d Mon Sep 17 00:00:00 2001 From: Jinwoo Oh Date: Wed, 20 Jan 2016 18:44:26 +0900 Subject: [PATCH] Add .babelrc & Move to babel 6 --- .babelrc | 3 +++ package.json | 13 ++++++++----- webpack.config.js | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..92f36fda --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015", "react", "stage-0"], +} diff --git a/package.json b/package.json index 82b19cbb..373958a7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "git+ssh://git@github.com/Rezonans/redux-async-connect.git" }, "scripts": { - "build": "babel ./modules --stage 0 --loose all -d lib --ignore '__tests__'", + "build": "babel ./modules -d lib --ignore '__tests__'", "lint": "eslint modules", "start": "babel-node example/server.js", "test": "npm run lint && karma start", @@ -33,10 +33,13 @@ "react-redux": "4.0.x" }, "devDependencies": { - "babel": "^5.8.34", - "babel-core": "^5.8.34", - "babel-eslint": "^3.1.23", - "babel-loader": "^5.4.0", + "babel-cli": "^6.4.5", + "babel-core": "^6.4.5", + "babel-eslint": "^5.0.0-beta6", + "babel-loader": "^6.2.1", + "babel-preset-es2015": "^6.3.13", + "babel-preset-react": "^6.3.13", + "babel-preset-stage-0": "^6.3.13", "eslint": "1.4.1", "eslint-config-rackt": "1.0.0", "eslint-plugin-react": "3.3.2", diff --git a/webpack.config.js b/webpack.config.js index 706212b7..4815de6c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -26,7 +26,7 @@ module.exports = { module: { loaders: [ - { test: /\.js$/, exclude: /node_modules/, loader: 'babel?stage=0&loose=all' } + { test: /\.js$/, exclude: /node_modules/, loader: 'babel' } ] },