Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit ff46b3f

Browse files
committed
Merge in develop branch
2 parents e570b21 + c07d166 commit ff46b3f

File tree

4 files changed

+148
-91
lines changed

4 files changed

+148
-91
lines changed

packages/truffle/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"analyze": "./scripts/analyze.sh",
1717
"build": "yarn build-cli",
18-
"build-cli": "webpack --config ./cli.webpack.config.js",
18+
"build-cli": "NODE_OPTIONS='--max-old-space-size=4096' webpack --config ./webpack.config.js",
1919
"postinstall": "node ./scripts/postinstall.js",
2020
"prepare": "yarn build",
2121
"publish:byoc": "node ./scripts/prereleaseVersion.js byoc-safe byoc",
@@ -36,8 +36,8 @@
3636
"@truffle/core": "^5.1.23",
3737
"@truffle/debugger": "^7.2.0",
3838
"@truffle/interface-adapter": "^0.4.6",
39-
"clean-webpack-plugin": "^0.1.16",
40-
"copy-webpack-plugin": "^4.0.1",
39+
"clean-webpack-plugin": "^3.0.0",
40+
"copy-webpack-plugin": "^5.1.1",
4141
"eslint": "^5.7.0",
4242
"fs-extra": "^8.1.0",
4343
"ganache-core": "2.10.2",
@@ -47,14 +47,14 @@
4747
"meta-npm": "^0.0.22",
4848
"meta-pkgs": "^0.2.0",
4949
"nyc": "^13.0.1",
50-
"prepend-file": "^1.3.1",
5150
"semver": "^5.6.0",
5251
"shebang-loader": "0.0.1",
5352
"stream-buffers": "^3.0.1",
5453
"tmp": "0.0.33",
5554
"web3": "1.2.1",
56-
"webpack": "^3.12.0",
55+
"webpack": "^4.43.0",
5756
"webpack-bundle-analyzer": "^3.0.3",
57+
"webpack-cli": "^3.3.11",
5858
"yargs": "^8.0.2"
5959
},
6060
"publishConfig": {

packages/truffle/scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ elif [ "$COVERAGE" == true ]; then
1313
elif [ "$INTEGRATION" == true ]; then
1414
mocha --no-warnings --timeout 7000 --grep @geth --invert --colors $@
1515
else
16-
yarn build-cli && mocha --no-warnings --timeout 7000 --grep @geth --invert --colors $@
16+
yarn build && mocha --no-warnings --timeout 7000 --grep @geth --invert --colors $@
1717
fi
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require("path");
22
const CopyWebpackPlugin = require("copy-webpack-plugin");
3-
const CleanWebpackPlugin = require("clean-webpack-plugin");
3+
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
44
const webpack = require("webpack");
55
const pkg = require("./package.json");
66
const rootDir = path.join(__dirname, "../..");
@@ -40,20 +40,23 @@ module.exports = {
4040
"index.js"
4141
)
4242
},
43+
4344
target: "node",
4445
node: {
4546
// For this option, see here: https://github.com/webpack/webpack/issues/1599
4647
__dirname: false,
4748
__filename: false
4849
},
4950
context: rootDir,
51+
5052
output: {
5153
path: outputDir,
5254
filename: "[name].bundled.js",
5355
library: "",
5456
libraryTarget: "commonjs"
5557
},
5658
devtool: "source-map",
59+
5760
module: {
5861
rules: [
5962
// ignores "#!/bin..." lines inside files
@@ -67,13 +70,15 @@ module.exports = {
6770
}
6871
]
6972
},
73+
7074
externals: [
7175
// truffle-config uses the original-require module.
7276
// Here, we leave it as an external, and use the original-require
7377
// module that's a dependency of Truffle instead.
7478
/^original-require$/,
7579
/^mocha$/
7680
],
81+
7782
plugins: [
7883
new webpack.DefinePlugin({
7984
BUNDLE_VERSION: JSON.stringify(pkg.version),
@@ -279,11 +284,12 @@ module.exports = {
279284
}
280285
]),
281286

282-
new CleanWebpackPlugin(["build"]),
287+
new CleanWebpackPlugin(),
283288

284289
// Make web3 1.0 packable
285290
new webpack.IgnorePlugin(/^electron$/)
286291
],
292+
287293
resolve: {
288294
alias: {
289295
"ws": path.join(__dirname, "./nil.js"),
@@ -299,6 +305,7 @@ module.exports = {
299305
"scrypt": "js-scrypt"
300306
}
301307
},
308+
302309
stats: {
303310
warnings: false
304311
}

0 commit comments

Comments
 (0)