-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpackage.json
More file actions
148 lines (148 loc) · 5.01 KB
/
Copy pathpackage.json
File metadata and controls
148 lines (148 loc) · 5.01 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"name": "valkey-admin",
"productName": "Valkey Admin",
"description": "A modern admin interface for Valkey databases",
"private": true,
"version": "1.1.0",
"author": {
"name": "Valkey Admin Team",
"email": "admin@valkey.io"
},
"workspaces": [
"common",
"apps/frontend",
"apps/server",
"apps/metrics"
],
"main": "apps/frontend/electron.main.js",
"devDependencies": {
"@eslint/js": "^9.32.0",
"@stylistic/eslint-plugin": "^5.3.1",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"concurrently": "^9.2.0",
"dotenv": "^17.2.3",
"electron": "^38.4.0",
"electron-builder": "^26.0.12",
"electron-notarize": "^1.2.2",
"eslint": "^9.32.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"typescript-eslint": "^8.38.0",
"vitest": "^4.0.15"
},
"scripts": {
"dev": "export DEPLOYMENT_MODE=Web VALKEY_ADMIN_ALLOWED_WS_ORIGINS=http://localhost:5173 VITE_VALKEY_ADMIN_WS_URL=ws://localhost:8080 && npm run build:metrics && npm run build:frontend && concurrently \"npm --workspace apps/frontend run dev\" \"npm --workspace apps/server run dev\"",
"build:server": "npm --workspace apps/server run build",
"build:vite:server": "npm --workspace apps/server run build:vite",
"build:frontend": "npm --workspace apps/frontend run build",
"build:metrics": "npm --workspace apps/metrics run build",
"build:common": "npm --workspace common run build",
"build:all": "npm run build --workspaces",
"build:electron": "npm run build:common && npm run build:vite:server && npm run build:frontend && npm run build:metrics",
"package:mac": "npm run build:electron && npx electron-builder --mac --arm64 --publish never",
"package:mac:nosign": "export CSC_IDENTITY_AUTO_DISCOVERY=false && npm run package:mac",
"package:mac:x64": "npm run build:electron && npx electron-builder --mac --x64 --publish never",
"package:mac:x64:nosign": "export CSC_IDENTITY_AUTO_DISCOVERY=false && npm run package:mac:x64",
"package:linux": "npm run build:electron && npx electron-builder --linux --x64 --publish never",
"package:linux:nosign": "export CSC_IDENTITY_AUTO_DISCOVERY=false && npm run package:linux",
"package:linux:arm64": "npm run build:electron && npx electron-builder --linux --arm64 --publish never",
"package:linux:arm64:nosign": "export CSC_IDENTITY_AUTO_DISCOVERY=false && npm run package:linux:arm64",
"lint": "eslint --fix .",
"test:integration": "npm --workspace apps/server run test:integration"
},
"build": {
"appId": "com.valkey.admin",
"icon": "apps/frontend/assets/img/logo-big.png",
"directories": {
"output": "release"
},
"files": [
"apps/frontend/electron.main.js",
"apps/frontend/preload.js",
"apps/frontend/menu.js",
"apps/frontend/dist/**/*",
"package.json"
],
"extraFiles": [
{
"from": "node_modules/@valkey",
"to": "resources/app/node_modules/@valkey"
}
],
"extraResources": [
{
"from": "apps/server/dist/index.cjs",
"to": "server-backend.cjs"
},
{
"from": "apps/metrics/dist/index.cjs",
"to": "server-metrics.js"
},
{
"from": "apps/metrics/config.yml",
"to": "config.yml"
},
{
"from": "node_modules/@valkey/valkey-glide",
"to": "node_modules/@valkey/valkey-glide"
},
{
"from": "node_modules/@valkey/valkey-glide-darwin-arm64",
"to": "node_modules/@valkey/valkey-glide-darwin-arm64"
},
{
"from": "node_modules/@valkey/valkey-glide-darwin-x64",
"to": "node_modules/@valkey/valkey-glide-darwin-x64"
},
{
"from": "node_modules/@valkey/valkey-glide-linux-x64-gnu",
"to": "node_modules/@valkey/valkey-glide-linux-x64-gnu"
},
{
"from": "node_modules/@valkey/valkey-glide-linux-arm64-gnu",
"to": "node_modules/@valkey/valkey-glide-linux-arm64-gnu"
},
{
"from": "node_modules/long",
"to": "node_modules/long"
},
{
"from": "node_modules/protobufjs",
"to": "node_modules/protobufjs"
},
{
"from": "node_modules/@protobufjs",
"to": "node_modules/@protobufjs"
},
{
"from": "node_modules/ws",
"to": "node_modules/ws"
}
],
"mac": {
"target": "dmg",
"notarize": false,
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "mac_build/entitlements.plist",
"entitlementsInherit": "mac_build/entitlements.plist"
},
"linux": {
"target": [
"AppImage",
"deb"
],
"category": "Development",
"icon": "apps/frontend/assets/img/logo-512.png"
},
"afterSign": "mac_build/notarize.js",
"afterAllArtifactBuild": "linux_build/sign.js"
},
"dependencies": {
"@types/express": "^5.0.6"
}
}