-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
85 lines (85 loc) · 2.56 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
{
"name": "NeteaseCloudMusicClient",
"version": "1.0.0",
"description": "an example based on umijs + electron + typescript",
"main": "./dist/main/main.js",
"author": "jiechud",
"private": true,
"build": {
"files": [
"dist/",
"node_modules/",
"package.json"
],
"mac": {
"category": "your.app.category.type"
},
"directories": {
"output": "release"
},
"appId": "com.arvinx.umi-electron-typescript",
"asar": false
},
"scripts": {
"start": "npm run build-main-dev && electron ./dist/main/main.js",
"dev": "concurrently \"npm run dev:renderer\" \"npm run dev:main\"",
"pack": "npm run build:renderer && npm run build-main-prod && electron-builder --dir",
"pack:main": "npm run build-main-prod && electron-builder --dir",
"pack:renderer": "npm run build:renderer && electron-builder --dir",
"dev:main": "electron-webpack dev",
"dev:renderer": "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",
"lint": "tslint -c tslint.json -p tsconfig.json",
"debug:main": "electron --inspect=5858 -w ./dist/main/main.js",
"dist": "electron-builder",
"prettier": "prettier --list-different \"./**/*.{ts,tsx,js,jsx,less}\""
},
"repository": "https://github.com/arvinxx/umi-electron-typescript",
"keywords": [
"Electron",
"umi",
"quick",
"start",
"tutorial",
"demo",
"typescript"
],
"devDependencies": {
"awesome-typescript-loader": "^5.2.1",
"concurrently": "^3.5.1",
"electron": "^5.0.2",
"electron-builder": "^20.38.5",
"electron-debug": "^2.1.0",
"electron-webpack": "^2.6.2",
"electron-webpack-ts": "^3.1.1",
"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.4.4",
"umi-plugin-react": "^1.4.2",
"webpack": "4.28.0",
"webpack-cli": "^3.2.1",
"webpack-merge": "^4.2.1"
},
"dependencies": {
"classnames": "^2.2.6",
"electron-context-menu": "^0.14.0",
"react-split-pane": "^0.1.87",
"umi-request": "^1.2.2"
},
"electronWebpack": {
"main": {
"sourceDirectory": "src/main",
"webpackConfig": "build/webpack.base.config.js",
"extraEntries": ["./src/main/preload.ts"]
},
"renderer": {
"sourceDirectory": null
}
}
}