-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
105 lines (105 loc) · 2.93 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
104
105
{
"main": "public/electron/main.js",
"author": "shyunku",
"name": "keyhub",
"version": "0.5.7",
"schemeVersion": "v1",
"private": true,
"debug": true,
"homepage": "./",
"config": {
"react_port": 4125
},
"dependencies": {
"@electron/remote": "2.0.10",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"concurrently": "6.1.0",
"crypto-js": "4.0.0",
"electron-installer-dmg": "3.0.0",
"query-string": "7.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-helmet": "6.1.0",
"react-icons": "4.2.0",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3",
"react-transition-group": "4.4.1",
"sass": "1.58.3",
"sha256": "0.2.0",
"sqlite3": "5.0.2",
"wait-on": "5.3.0",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"win-react": "set PORT=%npm_package_config_react_port% && set BROWSER=none&& npm start",
"mac-react": "PORT=$npm_package_config_react_port BROWSER=none npm start",
"win-electron": "set ELECTRON_START_URL=http://localhost:%npm_package_config_react_port% && set NODE_ENV=development && wait-on http://localhost:%npm_package_config_react_port% && electron .",
"mac-electron": "export ELECTRON_START_URL=http://localhost:$npm_package_config_react_port && export NODE_ENV=development && wait-on http://localhost:$npm_package_config_react_port && electron .",
"win-all": "concurrently \"npm run win-react\" \"npm run win-electron\"",
"mac-all": "concurrently \"npm run mac-react\" \"npm run mac-electron\"",
"win-pack": "npm run build && electron-builder build -c.extraMetadata.main=build/electron/main.js",
"mac-pack": "npm run build && electron-builder build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"electron": "23.1.0",
"electron-builder": "23.6.0"
},
"build": {
"productName": "Keyhub",
"appId": "com.shyunku.keyhub",
"asar": true,
"files": [
"build/**/*",
"electron/main.js"
],
"win": {
"target": [
{
"target": "nsis",
"arch": [
"ia32"
]
}
],
"icon": "./public/favicon256.ico"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"include": "win-installer.nsh"
},
"extraResources": [
{
"from": "./build/default/",
"to": "default",
"filter": [
"**/*"
]
}
]
}
}