-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 2.14 KB
/
Copy pathpackage.json
File metadata and controls
71 lines (71 loc) · 2.14 KB
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
{
"name": "jw-serial",
"version": "1.1.0",
"private": true,
"description": "Serial plotter MVP (Electron + React + Vite)",
"main": "src/main/main.js",
"type": "module",
"scripts": {
"dev": "concurrently \"vite\" \"wait-on http://localhost:5173 && cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron .\"",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint .",
"build:renderer": "vite build",
"dist:win": "npm run build:renderer && npm run dist:setup:only && npm run dist:portable:only",
"dist:setup:only": "npx --yes electron-builder --win nsis --x64 --publish never --config.win.target=nsis",
"dist:portable:only": "npx --yes electron-builder --win portable --x64 --publish never --config.win.target=portable",
"dist:portable": "npm run build:renderer && npm run dist:portable:only",
"dist": "npm run dist:win"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"serialport": "^12.0.0",
"uplot": "^1.6.30"
},
"devDependencies": {
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.3",
"concurrently": "^9.0.1",
"cross-env": "^7.0.3",
"electron": "^31.4.0",
"eslint": "^9.12.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^5.1.0",
"wait-on": "^7.2.0",
"vite": "^5.4.10",
"electron-builder": "^24.13.3"
},
"build": {
"appId": "com.jwserial.app",
"productName": "JW-Serial",
"directories": {
"output": "release"
},
"files": [
"dist/renderer/**/*",
"src/main/**/*",
"build/icon.ico",
"package.json"
],
"win": {
"icon": "build/icon.ico",
"target": [
"nsis",
"portable"
]
},
"nsis": {
"artifactName": "${productName}-Setup-${version}-${arch}.${ext}",
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"installerIcon": "build/icon.ico",
"uninstallerIcon": "build/icon.ico",
"installerHeaderIcon": "build/icon.ico"
},
"portable": {
"artifactName": "${productName}-Portable-${version}-${arch}.${ext}"
}
}
}