Skip to content

Commit e9055ee

Browse files
committed
Update dependencies
also downgrade redux to v3.7.2 because remotedev-app still using
1 parent b33e9b6 commit e9055ee

File tree

5 files changed

+1933
-989
lines changed

5 files changed

+1933
-989
lines changed

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,30 +40,31 @@
4040
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
4141
"babel-preset-env": "^1.6.1",
4242
"babel-preset-react": "^6.24.1",
43-
"cross-env": "^5.1.4",
43+
"cross-env": "^5.2.0",
4444
"devtron": "^1.4.0",
4545
"electron": "~1.7.15",
4646
"electron-debug": "^1.5.0",
4747
"electron-devtools-installer": "^2.2.3",
48-
"electron-packager": "^9.1.0",
48+
"electron-packager": "^12.1.0",
4949
"electron-rebuild": "^1.7.3",
5050
"eslint": "^4.18.2",
5151
"eslint-config-airbnb": "^10.0.0",
5252
"eslint-plugin-import": "^1.12.0",
5353
"eslint-plugin-jsx-a11y": "^2.0.1",
5454
"eslint-plugin-react": "^6.0.0",
55-
"jest": "^21.2.1",
56-
"lodash-webpack-plugin": "^0.11.4",
55+
"jest": "^23.4.1",
56+
"lodash-webpack-plugin": "^0.11.5",
5757
"mobx": "^3.6.2",
5858
"mobx-remotedev": "^0.2.8",
5959
"raw-loader": "^0.5.1",
60-
"shelljs": "^0.7.8",
60+
"shelljs": "^0.8.2",
6161
"spectron": "^3.8.0",
62-
"style-loader": "^0.19.1",
63-
"uglifyjs-webpack-plugin": "^1.0.0-beta.3",
64-
"webpack": "^3.11.0",
65-
"webpack-bundle-analyzer": "^2.11.1",
66-
"webpack-dev-server": "^2.11.2",
62+
"style-loader": "^0.21.0",
63+
"uglifyjs-webpack-plugin": "^1.2.7",
64+
"webpack": "^4.16.1",
65+
"webpack-bundle-analyzer": "^2.13.1",
66+
"webpack-cli": "^3.1.0",
67+
"webpack-dev-server": "^3.1.4",
6768
"whatwg-fetch": "^2.0.3",
6869
"ws": "^3.3.3"
6970
},
@@ -82,7 +83,7 @@
8283
"react-devtools-core": "^2.5.2",
8384
"react-dom": "^15.6.1",
8485
"react-redux": "^5.0.7",
85-
"redux": "^4.0.0",
86+
"redux": "^3.7.2",
8687
"redux-devtools": "^3.4.1",
8788
"redux-devtools-instrument": "^1.9.0",
8889
"redux-persist": "^4.10.2",

webpack/main.prod.babel.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import path from 'path';
22
import webpack from 'webpack';
3-
import UglifyJSPlugin from 'uglifyjs-webpack-plugin';
3+
import UglifyJsPlugin from 'uglifyjs-webpack-plugin';
44
import baseConfig from './base.babel';
55

66
export default {
77
...baseConfig,
8+
mode: 'production',
89
devtool: 'hidden-source-map',
910
entry: './electron/main',
1011
output: {
@@ -17,11 +18,15 @@ export default {
1718
'process.env.NODE_ENV': JSON.stringify('production'),
1819
}),
1920
new webpack.optimize.ModuleConcatenationPlugin(),
20-
new UglifyJSPlugin({
21-
sourceMap: true,
22-
uglifyOptions: { output: { comments: false } },
23-
}),
2421
],
22+
optimization: {
23+
minimizer: [
24+
new UglifyJsPlugin({
25+
sourceMap: true,
26+
uglifyOptions: { output: { comments: false } },
27+
}),
28+
],
29+
},
2530
target: 'electron-main',
2631
node: {
2732
__dirname: false,

webpack/renderer.dev.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const port = 3000;
66

77
const baseDevConfig = {
88
...baseConfig,
9+
mode: 'development',
910
devtool: 'inline-source-map',
1011
devServer: { host, port },
1112
output: {

webpack/renderer.prod.babel.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import webpack from 'webpack';
2-
import UglifyJSPlugin from 'uglifyjs-webpack-plugin';
2+
import UglifyJsPlugin from 'uglifyjs-webpack-plugin';
33
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
44
import baseConfig from './base.babel';
55

66
const baseProdConfig = {
77
...baseConfig,
8+
mode: 'production',
89
devtool: 'hidden-source-map',
910
output: {
1011
...baseConfig.output,
@@ -26,11 +27,15 @@ const baseProdConfig = {
2627
__REACT_DEVTOOLS_GLOBAL_HOOK__: 'false',
2728
}),
2829
new webpack.optimize.ModuleConcatenationPlugin(),
29-
new UglifyJSPlugin({
30-
sourceMap: true,
31-
uglifyOptions: { output: { comments: false } },
32-
}),
3330
],
31+
optimization: {
32+
minimizer: [
33+
new UglifyJsPlugin({
34+
sourceMap: true,
35+
uglifyOptions: { output: { comments: false } },
36+
}),
37+
],
38+
},
3439
};
3540

3641
const buildProdConfig = config => ({

0 commit comments

Comments
 (0)