forked from wangtianlun/umi-electron-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
84 lines (84 loc) · 2.45 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": "umi-electron-typescript",
"version": "1.0.0",
"description": "an example based on umijs + electron + typescript",
"main": "./dist/main/main.js",
"private": true,
"build": {
"files": [
"dist/",
"node_modules/",
"package.json"
],
"mac": {
"category": "your.app.category.type"
},
"directories": {
"output": "release"
},
"appId": "com.wangtianlun.umi-electron-typescript",
"asar": false
},
"scripts": {
"start": "concurrently \"yarn start:main\" \"yarn start:renderer\"",
"start:main": "electron-webpack dev",
"start:renderer": "BROWSER=none APP_ROOT=src/renderer umi dev",
"build-main-prod": "NODE_ENV=production webpack --config ./build/webpack.main.prod.config.js",
"build-main-dev": "NODE_ENV=development webpack --config ./build/webpack.main.config.js",
"build:renderer": "APP_ROOT=src/renderer umi build",
"watch": "tsc -w",
"test": "jest",
"lint": "tslint -c tslint.json -p tsconfig.json",
"debug:main": "electron --inspect=5858 -w ./dist/main/main.js",
"pack": "npm run build:renderer && npm run build-main-prod && electron-builder --dir",
"dist": "electron-builder",
"dist-mac": "electron-builder -m",
"dist-win": "electron-builder -w",
"dist-linux": "electron-builder -l",
"dist-all": "electron-builder -mwl",
"prettier": "prettier --list-different \"./**/*.{ts,tsx,js,jsx,less}\"",
"postinstall": "electron-builder install-app-deps"
},
"repository": "https://github.com/wangtianlun/umi-electron-typescript",
"keywords": [
"Electron",
"umi",
"quick",
"start",
"tutorial",
"demo",
"typescript"
],
"author": {
"name": "wangtianlun",
"email": "[email protected]"
},
"devDependencies": {
"awesome-typescript-loader": "^5.2.1",
"concurrently": "^5.1.0",
"electron": "^4.0.5",
"electron-builder": "^20.38.5",
"electron-debug": "^2.0.0",
"electron-webpack": "^2.6.2",
"electron-webpack-ts": "^3.1.1",
"jest": "^24.9.0",
"prettier": "1.16.4",
"ts-loader": "^5.3.3",
"tslint": "^5.10.0",
"typescript": "^3.2.4",
"uglifyjs-webpack-plugin": "^2.1.1",
"umi": "^2.8.17",
"umi-plugin-react": "^1.9.15",
"webpack": "4.28.0",
"webpack-cli": "^3.2.1",
"webpack-merge": "^4.2.1"
},
"electronWebpack": {
"main": {
"sourceDirectory": "src/main"
},
"renderer": {
"sourceDirectory": null
}
}
}