-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
84 lines (84 loc) · 2.79 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "electron-webpack-boilerplate",
"version": "1.0.0",
"description": "electron-webpack-boilerplate",
"scripts": {
"build": "(npm run build:main & npm run build:vendor) && npm run build:renderer",
"build:main": "cross-env NODE_ENV=production webpack --config ./webpack/main.prod.config.babel.js --display-optimization-bailout",
"build:renderer": "cross-env NODE_ENV=production webpack --config ./webpack/renderer.prod.config.babel.js --display-optimization-bailout",
"build:vendor": "cross-env NODE_ENV=production webpack --config ./webpack/vendor.prod.config.babel.js --display-optimization-bailout",
"dev": "npm run dev:renderer & npm run dev:main",
"dev:main": "webpack --config webpack/main.dev.config.babel.js -w",
"dev:renderer": "webpack-dev-server --config ./webpack/renderer.dev.config.babel.js",
"start": "electron ./app/main.js",
"pack": "cross-env ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ build --dir",
"pack:mac": "cross-env ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ build -m",
"pack:win": "cross-env ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ build -w",
"rebuild": "./node_modules/.bin/electron-rebuild -d=https://gh-contractor-zcbenz.cnpmjs.org/atom-shell/dist/ -m ./app",
"postinstall": "install-app-deps"
},
"keywords": [],
"build": {
"productName": "ElectronWebpack",
"appId": "org.yourhostname.ElectronWebpack",
"asar": false,
"win": {
"target": [
"nsis"
],
"icon": "static/icon"
},
"mac": {
"target": [
"dmg"
],
"icon": "static/icon"
},
"linux": {
"target": [
"deb"
]
},
"directories": {
"buildResources": "resources",
"output": "release"
}
},
"author": {
"name": "Poling",
"email": "466681097@qq.com"
},
"license": "MIT",
"dependencies": {
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-minify-webpack-plugin": "^0.2.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-2": "^6.24.1",
"babel-register": "^6.26.0",
"clean-webpack-plugin": "^0.1.16",
"cross-env": "^5.0.5",
"css-loader": "^0.28.5",
"electron": "^1.7.5",
"electron-builder": "^19.22.1",
"electron-is": "^2.4.0",
"electron-rebuild": "^1.6.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.2",
"html-webpack-plugin": "^2.30.1",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"semver-regex": "^1.0.0",
"style-loader": "^0.18.2",
"url-loader": "^0.5.9",
"webpack": "^3.5.5",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.7.1",
"webpack-merge": "^4.1.0"
}
}