From edd2ccc54544bc2b3804b1d3df208171613c5a8c Mon Sep 17 00:00:00 2001 From: Leonardo Andres Garcia Crespo Date: Mon, 1 May 2017 15:14:28 -0300 Subject: [PATCH] Update dev dependencies. Now built with babel 6 --- .babelrc | 6 +++++- .gitignore | 1 + examples/webpack.config.js | 8 ++------ package.json | 20 +++++++++++--------- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.babelrc b/.babelrc index b0b9a96..d4d8656 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,7 @@ { - "stage": 0 + "presets": [ + "es2015", + "stage-2", + "react" + ] } diff --git a/.gitignore b/.gitignore index 187d174..5c9d4cf 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ lib node_modules /npm-debug.log +yarn.lock diff --git a/examples/webpack.config.js b/examples/webpack.config.js index b5dc2dd..ad1b82d 100644 --- a/examples/webpack.config.js +++ b/examples/webpack.config.js @@ -12,15 +12,11 @@ var config = { resolve: { alias: { 'react-sound': __dirname + '/../src' - }, - extensions: ['', '.js'] + } }, - plugins: [ - new webpack.NoErrorsPlugin() - ], module: { loaders: [ - { test: /\.js$/, exclude: /node_modules/, loaders: ['react-hot', 'babel?stage=0'] } + { test: /\.js$/, exclude: /node_modules/, loaders: ['react-hot-loader', 'babel-loader'] } ] } }; diff --git a/package.json b/package.json index b878616..7ab586e 100644 --- a/package.json +++ b/package.json @@ -25,17 +25,19 @@ "soundmanager2": "^2.97.20150601-a" }, "devDependencies": { - "babel": "^5.5.6", - "babel-core": "^5.5.6", - "babel-eslint": "^6.0.5", - "babel-loader": "^5.1.4", - "eslint": "^2.13.1", - "eslint-plugin-react": "5.2.2", - "node-libs-browser": "^0.5.2", + "babel-cli": "^6.24.1", + "babel-core": "^6.24.1", + "babel-eslint": "^7.2.3", + "babel-loader": "^7.0.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react": "^6.24.1", + "babel-preset-stage-2": "^6.24.1", + "eslint": "^3.19.0", + "eslint-plugin-react": "^6.10.3", "react-dom": ">=15.3.0 <16.0.0", "react-hot-loader": "^1.3.1", "rimraf": "^2.4.0", - "webpack": "^1.9.10", - "webpack-dev-server": "^1.9.0" + "webpack": "^2.4.1", + "webpack-dev-server": "^2.4.5" } }