-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathpackage.json
128 lines (128 loc) · 3.48 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "electron-react",
"version": "1.1.7",
"description": "electron-react脚手架工程",
"main": "main.js",
"build-config": {
"appid": "001",
"version": "001",
"env": "development"
},
"scripts": {
"start": "npm run compile-main && cross-env NODE_ENV=development node ./scripts/server.js",
"clean": "rm -rf dist && rm -rf render_process && rm -rf main_process",
"eslint": "echo \"代码检测中...\" && eslint *.js --cache",
"eslint-fix": "npm run --silent eslint -- --fix; exit 0",
"build-win": "electron-builder --win --ia32",
"build-mac": "electron-builder -mwl",
"compile": "npm run compile-main && npm run compile-render",
"compile-main": "babel -D ./main -d ./main_process",
"compile-render": "webpack --config ./scripts/webpack-prod.js --color --progress",
"pack-mac": "npm run clean && npm run compile && npm run build-mac",
"pack-win": "npm run clean && npm run compile && npm run build-win",
"build": "npm run pack-win"
},
"keywords": [
"electron",
"react"
],
"author": "shiqi.li",
"devDependencies": {
"antd": "3.7.3",
"babel-cli": "^6.26.0",
"babel-core": "^6.0.0",
"babel-eslint": "^8.2.3",
"babel-loader": "^7.1.2",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-import": "^1.0.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.3.14",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.0.15",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.2.0",
"css-loader": "^0.28.7",
"electron": "2.0.0",
"electron-builder": "^20.29.0",
"eslint": "^5.8.0",
"eslint-config-standard": "10.2.1",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^2.0.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^2.30.1",
"js-cookie": "2.1.4",
"less": "^2.3.1",
"less-loader": "3.x",
"less-plugin-npm-import": "^2.1.0",
"mobx": "3.1.9",
"mobx-react": "4.1.8",
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-hot-keys": "^1.0.11",
"react-hot-loader": "^4.2.0",
"react-router": "^4.2.0",
"react-router-dom": "^4.2.2",
"style-loader": "^0.19.0",
"url-loader": "^0.6.2",
"webpack": "3",
"webpack-dev-server": "^2.9.7",
"webpack-hot-middleware": "^2.20.0"
},
"dependencies": {
"fs-extra": "^5.0.0",
"getmac": "^1.4.1",
"md5-file": "^3.2.3",
"moment": "^2.22.2",
"request": "^2.83.0",
"winreg": "^1.2.4"
},
"build": {
"productName": "electron-react",
"appId": "electron-react",
"asar": false,
"files": [
"package.json",
"main.js",
"main_process/",
"render_process/",
"node_modules/",
"icon.ico"
],
"npmRebuild": false,
"dmg": {
"artifactName": "electron_react.dmg",
"contents": [
{
"type": "link",
"path": "/Applications",
"x": 410,
"y": 150
},
{
"type": "file",
"x": 130,
"y": 150
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"shortcutName": "electron-react"
},
"mac": {
"target": "dmg",
"icon": "icon.ico"
},
"win": {
"target": "nsis",
"icon": "icon.ico"
},
"directories": {
"buildResources": "resources",
"output": "dist/"
}
}
}