You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

140 lines
4.0 KiB

{
"name": "my-electron-app",
"version": "1.0.0",
"description": "description",
"main": "dist/electron/entry.js",
"scripts": {
"dev": "node script/run.js",
"build": "node script/run.js --build",
"build:in": "npm run build:vite && node script/build.js && npm run package",
"buildaa": "npm run build:vite && ts-node -r tsconfig-paths/register script/build --env=production && npm run package",
"webpack": "node script/webpack/runMain.js",
"deva": "ts-node -r tsconfig-paths/register script/dev-runner --env=development --watch",
"devaa": "npm run dev:all",
"dev:all": "concurrently -n=vue,ele -c=green,blue \"npm run dev:vue\" \"npm run dev:ele\"",
"dev:vue": "node script/before",
"dev:ele": "node -r ts-node/register script/build-main --env=development --watch",
"dev:test": "electron-forge start --inspect-electron",
"package": "electron-builder build --x64 --win",
"packageaaa": "electron-forge package",
"make": "electron-forge make",
"build:vite": "vite build",
"serve": "vite preview"
},
"keywords": [],
"author": "TopOne",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.14.8",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"@babel/preset-stage-0": "^7.8.3",
"@babel/preset-typescript": "^7.14.5",
"@rollup/plugin-alias": "^3.1.4",
"@rollup/plugin-commonjs": "^19.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.3",
"@types/minimist": "^1.2.2",
"@types/node": "^15.14.3",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.7",
"@vitejs/plugin-react-refresh": "^1.3.1",
"axios": "^0.21.1",
"babel-loader": "^8.2.2",
"babel-minify-webpack-plugin": "^0.3.1",
"cfonts": "^2.9.3",
"chalk": "^4.1.1",
"classnames": "^2.3.1",
"concurrently": "^6.2.0",
"cross-env": "^7.0.3",
"dotenv": "^10.0.0",
"electron": "^13.1.7",
"electron-builder": "^22.11.7",
"electron-debug": "^3.2.0",
"electron-devtools-installer": "^3.2.0",
"electron-squirrel-startup": "^1.0.0",
"execa": "^5.1.1",
"i18next": "^20.3.4",
"i18next-browser-languagedetector": "^6.1.2",
"node-loader": "^2.0.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-i18next": "^11.11.3",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"redux": "^4.1.0",
"redux-devtools": "^3.7.0",
"redux-saga": "^1.1.3",
"sass": "^1.35.1",
"styled-jsx": "^3.4.4",
"ts-loader": "^9.2.4",
"ts-node": "^10.1.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.2",
"vite": "^2.4.3",
"vite-plugin-html": "^2.0.7",
"vite-plugin-windicss": "^1.2.0",
"vitejs-plugin-electron": "^0.1.3",
"webpack": "^5.47.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"windicss": "^3.1.3"
},
"dependencies": {},
"build": {
"productName": "my-project",
"appId": "com.example.yourapp",
"copyright": "xxxx",
"directories": {
"output": "out",
"app": "./dist"
},
"nsis": {
"oneClick": false,
"allowElevation": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"allowToChangeInstallationDirectory": true,
"perMachine": true
},
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"extraResources": {
"from": "src/preload",
"to": "src/preload"
},
"mac": {
"icon": "resource/electron/static/icon.png"
},
"win": {
"icon": "resource/electron/static/icon.png",
"target": [
{
"target": "nsis",
"arch": [
"ia32"
]
}
]
},
"linux": {
"icon": "resource/electron/static/icon.png"
}
}
}