-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
83 lines (83 loc) · 2.25 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
{
"name": "umi-electron-biolerplate",
"version": "0.0.1",
"private": true,
"description": "An example based on umijs v3 + electron + typescript",
"main": "./dist/main/main.js",
"build": {
"appId": "com.vincentx.umi-electron-biolerplate",
"files": [
"dist/",
"node_modules/",
"package.json"
],
"directories": {
"output": "release"
}
},
"scripts": {
"start:umi": "cross-env NODE_ENV=development BROWSER=none APP_ROOT=app umi dev",
"start:electron": "cross-env NODE_ENV=development electron-webpack dev",
"start": "concurrently \"yarn start:umi\" \"yarn start:electron\"",
"postinstall": "umi generate tmp",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"build:umi": "APP_ROOT=app umi build",
"build:mac": "electron-builder --mac",
"build:windows": "electron-builder --win",
"build:linux": "electron-builder --linux",
"build:electron": "electron-builder -mwl",
"build:electron:prod": "NODE_ENV=production webpack --config ./build/webpack.main.prod.config.js",
"build:electron:dev": "NODE_ENV=development webpack --config ./build/webpack.main.config.js",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"packing": "yarn run build:electron:prod && yarn run build:electron"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"dependencies": {
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.1.1",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"umi": "^3.1.1",
"yorkie": "^2.0.0"
},
"devDependencies": {
"@types/node": "^12",
"awesome-typescript-loader": "^5.2.1",
"concurrently": "^5.1.0",
"cross-env": "^7.0.2",
"devtron": "^1.4.0",
"electron": "^8.2.2",
"electron-builder": "^22.4.1",
"electron-debug": "^3.0.1",
"electron-webpack": "^2.8.2",
"electron-webpack-ts": "^4.0.1",
"nodemon": "^2.0.3",
"ts-loader": "^7.0.0",
"wait-on": "^4.0.2",
"webpack-merge": "^4.2.2"
},
"electronDownload": {
"mirror": "https://npm.taobao.org/mirrors/electron/"
},
"electronWebpack": {
"main": {
"sourceDirectory": "electron"
},
"renderer": {
"sourceDirectory": null
}
}
}