-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 1.8 KB
/
Copy pathpackage.json
File metadata and controls
68 lines (68 loc) · 1.8 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
{
"name": "metersphere-control-panel",
"version": "2.0.0",
"description": "MeterSphere 服务控制面板",
"author": "MeterSphere Team",
"main": "electron.js",
"scripts": {
"start": "node backend/server.js",
"predev": "node scripts/clean-port.js 3000 5000",
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
"dev:backend": "nodemon backend/server.js",
"dev:frontend": "cd frontend && npm run dev",
"electron:dev": "ELECTRON_START_URL=http://localhost:3000 electron .",
"build": "cd frontend && npm run build",
"electron:build": "npm run build && electron-builder --mac",
"pack": "electron-builder --mac --dir",
"dist": "npm run build && electron-builder --mac dmg",
"install:all": "npm install && cd frontend && npm install",
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"express": "^4.18.2",
"fix-path": "^3.0.0",
"js-yaml": "^4.1.1",
"mysql2": "^3.20.0",
"redis": "^5.11.0",
"rxjs": "^7.8.2",
"uuid": "^9.0.1",
"ws": "^8.19.0"
},
"devDependencies": {
"concurrently": "^8.2.2",
"electron": "^28.3.3",
"electron-builder": "^24.13.3",
"jest": "^29.7.0",
"nodemon": "^3.0.2"
},
"build": {
"appId": "com.metersphere.control-panel",
"productName": "MeterSphere Control Panel",
"asar": false,
"files": [
"electron.js",
"backend/**/*",
"frontend/dist/**/*",
"config.json",
"package.json",
"!frontend/src",
"!scripts",
"!docs",
"!**/*.md",
"!.git*"
],
"mac": {
"category": "public.app-category.developer-tools",
"target": [
"dmg"
]
},
"dmg": {
"title": "MeterSphere Control Panel"
},
"directories": {
"buildResources": "build"
}
}
}