forked from caoxiemeihao/electron-vite-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
103 lines (103 loc) · 2.69 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
{
"name": "electron-vue",
"version": "0.0.1",
"main": "dist/main/_.js",
"author": "草鞋没号 <[email protected]>",
"license": "MIT",
"scripts": {
"dev": "npm run dev:all",
"dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"",
"dev:vue": "vite",
"dev:ele": "node -r ts-node/register script/build-main --env=development --watch",
"build:vue": "node -r ts-node/register script/build-render",
"build:ele": "node -r ts-node/register script/build-main --env=production",
"build": "rimraf dist && npm run build:vue && npm run build:ele && electron-builder"
},
"build": {
"appId": "[email protected]",
"asar": false,
"directories": {
"output": "release/${version}"
},
"electronDownload": {
"mirror": "https://npm.taobao.org/mirrors/electron/"
},
"files": [
"!node_modules",
"dist/**"
],
"extraResources": {
"from": "src/preload",
"to": "app/src/preload"
},
"mac": {
"artifactName": "${productName}_${version}.${ext}",
"target": [
"dmg"
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "${productName}_${version}.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
}
},
"dependencies": {
"@ant-design/icons-vue": "^6.0.1",
"ant-design-vue": "^2.1.6",
"vue": "^3.0.11",
"vue-router": "^4.0.8"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-transform-typescript": "^7.14.3",
"@types/minimist": "^1.2.1",
"@types/node": "^15.6.0",
"@vitejs/plugin-vue": "^1.2.2",
"@vitejs/plugin-vue-jsx": "^1.1.4",
"@vue/babel-plugin-jsx": "^1.0.6",
"@vue/compiler-sfc": "^3.0.11",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
"chalk": "^4.1.0",
"concurrently": "^5.3.0",
"css-loader": "^5.0.2",
"electron": "12.0.9",
"electron-builder": "^22.8.0",
"electron-store": "^8.0.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.2.0",
"less": "^4.1.1",
"less-loader": "^8.0.0",
"minimist": "^1.2.5",
"ora": "^5.0.0",
"rimraf": "^3.0.2",
"style-loader": "^2.0.0",
"ts-node": "^9.1.1",
"typescript": "^4.2.4",
"url-loader": "^4.1.1",
"vite": "^2.3.3",
"vitejs-plugin-electron": "^0.1.0",
"vue-loader": "^16.2.0",
"webpack": "^5.37.1"
},
"keywords": [
"vite",
"electron",
"vue3",
"rollup"
]
}