Skip to content

Commit

Permalink
Switch from babel to buble
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Nov 3, 2016
1 parent eae52fd commit 0d38ab8
Show file tree
Hide file tree
Showing 6 changed files with 5,530 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"jquery": true,
"node": true
},
"parser": "babel-eslint"
"rules": {
"react/require-extension": 0,
"import/extensions": [1, { "js": "never" }]
}
}
4 changes: 3 additions & 1 deletion assets/build/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"extends": "airbnb",
"rules": {
"import/no-extraneous-dependencies": 0,
"prefer-rest-params": 0
"prefer-rest-params": 0,
"react/require-extension": 0,
"import/extensions": [1, { "js": "never" }]
}
}
8 changes: 2 additions & 6 deletions assets/build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const webpack = require('webpack');
const path = require('path');
const qs = require('qs');
const autoprefixer = require('autoprefixer');
const CleanPlugin = require('clean-webpack-plugin');
Expand All @@ -20,11 +19,8 @@ const jsLoader = {
test: /\.js$/,
exclude: [/(node_modules|bower_components)(?![/|\\](bootstrap|foundation-sites))/],
loaders: [{
loader: 'babel',
query: {
presets: [[path.resolve('./node_modules/babel-preset-es2015'), { modules: false }]],
cacheDirectory: true,
},
loader: 'buble',
query: { objectAssign: 'Object.assign' },
}],
};

Expand Down
2 changes: 1 addition & 1 deletion assets/build/webpack.plugin.browsersync.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict'; // eslint-disable-line strict
'use strict'; // eslint-disable-line

const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
Expand Down
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,15 @@
"devDependencies": {
"assets-webpack-plugin": "^3.5.0",
"autoprefixer": "^6.5.1",
"babel-cli": "^6.18.0",
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.0",
"babel-loader": "^6.2.7",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"babel-runtime": "^6.18.0",
"body-parser": "^1.15.2",
"browser-sync": "^2.17.5",
"buble": "^0.14.2",
"buble-loader": "^0.3.1",
"clean-webpack-plugin": "^0.1.13",
"css-loader": "^0.25.0",
"cssnano": "^3.8.0",
"eslint": "^3.9.1",
"eslint-config-airbnb": "^12.0.0",
"eslint-config-airbnb-es5": "^1.1.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
Expand Down
Loading

0 comments on commit 0d38ab8

Please sign in to comment.