2020-08-16 12:37:20 +08:00
|
|
|
{
|
|
|
|
"name": "electron-vue",
|
2020-08-16 20:42:52 +08:00
|
|
|
"version": "0.0.1",
|
2021-05-15 14:53:43 +08:00
|
|
|
"main": "dist/main/index.js",
|
2020-08-16 20:42:52 +08:00
|
|
|
"author": "草鞋没号 <308487730@qq.com>",
|
|
|
|
"license": "MIT",
|
2020-08-16 12:37:20 +08:00
|
|
|
"scripts": {
|
2020-08-16 20:42:52 +08:00
|
|
|
"dev": "npm run dev:all",
|
2020-08-17 09:16:26 +08:00
|
|
|
"dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"",
|
|
|
|
"dev:vue": "vite",
|
2021-04-01 11:32:55 +08:00
|
|
|
"dev:ele": "node -r ts-node/register script/build-main --env=development --watch",
|
2021-02-18 19:38:05 +08:00
|
|
|
"build:vue": "vite build",
|
2021-04-01 11:32:55 +08:00
|
|
|
"build:ele": "node -r ts-node/register script/build-main --env=production",
|
2021-02-17 22:27:40 +08:00
|
|
|
"build": "rimraf dist && npm run build:vue && npm run build:ele && electron-builder"
|
2020-08-17 09:16:26 +08:00
|
|
|
},
|
|
|
|
"build": {
|
|
|
|
"appId": "308487730@qq.com",
|
2021-02-18 20:06:23 +08:00
|
|
|
"asar": false,
|
|
|
|
"directories": {
|
|
|
|
"output": "release/${version}"
|
|
|
|
},
|
2020-08-17 09:16:26 +08:00
|
|
|
"files": [
|
|
|
|
"!node_modules",
|
2020-08-31 09:50:57 +08:00
|
|
|
"dist/**"
|
2020-08-17 09:16:26 +08:00
|
|
|
],
|
2021-02-18 20:06:23 +08:00
|
|
|
"extraResources": {
|
|
|
|
"from": "src/preload",
|
2021-02-18 21:49:53 +08:00
|
|
|
"to": "app/src/preload"
|
2021-02-18 20:06:23 +08:00
|
|
|
},
|
2020-08-17 09:16:26 +08:00
|
|
|
"mac": {
|
2021-02-18 20:06:23 +08:00
|
|
|
"artifactName": "${productName}_${version}.${ext}",
|
2020-08-17 09:16:26 +08:00
|
|
|
"target": [
|
|
|
|
"dmg"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"win": {
|
|
|
|
"target": [
|
|
|
|
{
|
|
|
|
"target": "nsis",
|
|
|
|
"arch": [
|
|
|
|
"x64"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2021-02-18 20:06:23 +08:00
|
|
|
"artifactName": "${productName}_${version}.${ext}"
|
2020-08-17 09:16:26 +08:00
|
|
|
},
|
|
|
|
"nsis": {
|
|
|
|
"oneClick": false,
|
|
|
|
"perMachine": false,
|
|
|
|
"allowToChangeInstallationDirectory": true,
|
|
|
|
"deleteAppDataOnUninstall": false
|
|
|
|
}
|
2020-08-16 12:37:20 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-05-08 17:28:12 +08:00
|
|
|
"vue": "^3.0.11"
|
2020-08-16 12:37:20 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-03-30 09:57:56 +08:00
|
|
|
"@rollup/plugin-alias": "^3.1.2",
|
2021-05-15 14:53:43 +08:00
|
|
|
"@rollup/plugin-commonjs": "^19.0.0",
|
2020-09-06 17:35:02 +08:00
|
|
|
"@rollup/plugin-json": "^4.1.0",
|
2021-03-30 09:57:56 +08:00
|
|
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
2021-05-15 14:53:43 +08:00
|
|
|
"@rollup/plugin-typescript": "^8.2.1",
|
2020-12-24 10:17:27 +08:00
|
|
|
"@types/minimist": "^1.2.1",
|
2021-05-08 17:28:12 +08:00
|
|
|
"@vitejs/plugin-vue": "^1.2.2",
|
|
|
|
"@vue/compiler-sfc": "^3.0.11",
|
2021-05-16 19:53:54 +08:00
|
|
|
"acorn": "^8.2.4",
|
2020-08-16 20:42:52 +08:00
|
|
|
"chalk": "^4.1.0",
|
2021-03-30 09:57:56 +08:00
|
|
|
"concurrently": "^6.0.0",
|
|
|
|
"electron": "12.0.2",
|
|
|
|
"electron-builder": "^22.10.5",
|
2021-02-17 22:27:40 +08:00
|
|
|
"electron-store": "^7.0.2",
|
2020-08-16 20:42:52 +08:00
|
|
|
"minimist": "^1.2.5",
|
2021-03-30 09:57:56 +08:00
|
|
|
"ora": "^5.4.0",
|
2021-02-17 22:27:40 +08:00
|
|
|
"rimraf": "^3.0.2",
|
2021-05-08 17:28:12 +08:00
|
|
|
"rollup-plugin-esbuild": "^4.2.3",
|
2020-12-24 10:17:27 +08:00
|
|
|
"ts-node": "^9.1.1",
|
2021-05-08 17:28:12 +08:00
|
|
|
"typescript": "^4.2.4",
|
|
|
|
"vite": "^2.2.4"
|
2020-08-16 21:10:10 +08:00
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"vite",
|
|
|
|
"electron",
|
|
|
|
"vue3",
|
|
|
|
"rollup"
|
|
|
|
]
|
2021-03-30 09:57:56 +08:00
|
|
|
}
|