Skip to content

Commit

Permalink
Prepare for Webpack v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed Mar 3, 2018
1 parent 35c22b5 commit 7503be1
Show file tree
Hide file tree
Showing 16 changed files with 5,537 additions and 989 deletions.
Empty file modified .babelrc
100644 → 100755
Empty file.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
Empty file modified .flowconfig
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .npmignore
100644 → 100755
Empty file.
Empty file modified .travis.yml
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6,482 changes: 5,521 additions & 961 deletions package-lock.json
100644 → 100755

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,25 @@
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-loader": "^7.1.2",
"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"eslint": "^4.16.0",
"eslint": "^4.18.2",
"eslint-config-google": "^0.9.1",
"eslint-plugin-flowtype": "^2.42.0",
"eslint-plugin-import": "^2.8.0",
"flow-bin": "^0.64.0",
"mocha": "^5.0.0",
"webpack": "^3.10.0"
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-import": "^2.9.0",
"flow-bin": "^0.66.0",
"mocha": "^5.0.1",
"webpack": "^4.0.1",
"webpack-cli": "^2.0.10"
},
"scripts": {
"prepare": "npm run clean && npm run eslint && npm run flow && npm run build",
"eslint": "node_modules/.bin/eslint --fix src test",
"build": "node_modules/.bin/webpack --display-error-details",
"prepare": "npm run clean && npm run lint && npm run flow && npm run build",
"build": "node_modules/.bin/webpack --mode=production",
"clean": "rm -rf dist",
"lint": "node_modules/.bin/eslint --fix src test",
"test": "npm run prepare && mocha --harmony",
"flow": "flow"
}
Expand Down
Empty file modified src/index.js
100644 → 100755
Empty file.
Empty file modified test/index.js
100644 → 100755
Empty file.
19 changes: 3 additions & 16 deletions webpack.config.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,15 @@ module.exports = {
},

context: __dirname,
target: "web",
target: "node",

module: {
rules: [
{
test: /\.js$/,
loader: "babel-loader",
exclude: /(node_modules|bower_components)/,
exclude: /node_modules/,
},
],
},

plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
},

output: {
comments: false,
semicolons: true,
},
}),
],
}
};

0 comments on commit 7503be1

Please sign in to comment.