-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 4.45 KB
/
package.json
File metadata and controls
105 lines (105 loc) · 4.45 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
{
"name": "flashforge-webui",
"version": "1.0.2",
"description": "Standalone WebUI for FlashForge 3D Printers",
"main": "dist/index.js",
"bin": "dist/index.js",
"type": "commonjs",
"scripts": {
"postinstall": "node scripts/download-go2rtc.cjs",
"dev": "npm run build && concurrently --names \"BACKEND,WEBUI,SERVER\" \"npm run build:backend:watch\" \"npm run build:webui:watch\" \"npm run start:dev\"",
"start": "node dist/index.js",
"start:dev": "nodemon --watch src --ext ts --exec \"node dist/index.js\"",
"build": "npm run build:backend && npm run build:webui",
"build:watch": "concurrently \"npm run build:backend:watch\" \"npm run build:webui:watch\"",
"build:backend": "tsx scripts/build-backend.ts",
"build:backend:watch": "tsx scripts/build-backend.ts --watch",
"build:webui": "rimraf dist/webui/static && tsc --project src/webui/static/tsconfig.json && npm run build:webui:copy",
"build:webui:watch": "tsc --project src/webui/static/tsconfig.json --watch",
"build:webui:copy": "node scripts/copy-webui-assets.js",
"build:linux": "npm run build && pkg . --targets node20-linux-x64 --output dist/flashforge-webui-linux-x64",
"build:linux-arm": "npm run build && pkg . --targets node20-linux-arm64 --output dist/flashforge-webui-linux-arm64",
"build:linux-armv7": "npm run build && pkg . --targets node20-linuxstatic-armv7 --output dist/flashforge-webui-linux-armv7",
"build:win": "npm run build && pkg . --targets node20-win-x64 --output dist/flashforge-webui-win-x64.exe",
"build:mac": "npm run build && pkg . --targets node20-macos-x64 --output dist/flashforge-webui-macos-x64",
"build:mac-arm": "npm run build && pkg . --targets node20-macos-arm64 --output dist/flashforge-webui-macos-arm64",
"build:all": "npm run build && npm run build:linux && npm run build:linux-arm && npm run build:linux-armv7 && npm run build:win && npm run build:mac && npm run build:mac-arm",
"build:wrapper": "tsx scripts/platform-build-wrapper.ts",
"build:win:wrapped": "npm run build:wrapper -- --platform win",
"build:linux:wrapped": "npm run build:wrapper -- --platform linux",
"build:linux-arm:wrapped": "npm run build:wrapper -- --platform linux-arm",
"build:linux-armv7:wrapped": "npm run build:wrapper -- --platform linux-armv7",
"build:mac:wrapped": "npm run build:wrapper -- --platform mac",
"build:mac-arm:wrapped": "npm run build:wrapper -- --platform mac-arm",
"build:all:wrapped": "npm run build:win:wrapped && npm run build:linux:wrapped && npm run build:linux-arm:wrapped && npm run build:linux-armv7:wrapped && npm run build:mac:wrapped && npm run build:mac-arm:wrapped",
"clean": "rimraf dist",
"download:go2rtc": "node scripts/download-go2rtc.cjs",
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"format": "biome format .",
"format:fix": "biome format --write .",
"check": "biome check .",
"check:fix": "biome check --write .",
"type-check": "tsc --noEmit",
"docs:check": "go run scripts/check-fileoverview.go",
"docs:check:debug": "go run scripts/check-fileoverview.go -debug",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:verbose": "jest --verbose"
},
"keywords": [
"flashforge",
"3d-printer",
"webui",
"monitoring",
"control"
],
"author": "Parallel-7",
"license": "MIT",
"dependencies": {
"@ghosttypes/ff-api": "1.0.0-20251122000715",
"@parallel-7/slicer-meta": "1.1.0-20251121155836",
"axios": "^1.8.4",
"express": "^5.1.0",
"form-data": "^4.0.0",
"gridstack": "^12.3.3",
"lucide": "^0.552.0",
"ws": "^8.18.3",
"zod": "^4.0.5"
},
"devDependencies": {
"@biomejs/biome": "2.4.5",
"@jest/globals": "^30.2.0",
"@types/express": "^4.17.21",
"@types/jest": "^30.0.0",
"@types/node": "^20.17.9",
"@types/supertest": "^6.0.3",
"@types/ws": "^8.5.13",
"@yao-pkg/pkg": "^5.15.0",
"concurrently": "^9.1.2",
"esbuild": "^0.27.3",
"jest": "^30.2.0",
"nodemon": "^3.1.11",
"rimraf": "^6.0.1",
"supertest": "^7.2.2",
"ts-jest": "^29.4.6",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=20.0.0"
},
"pkg": {
"scripts": [
"node_modules/axios/dist/**/*.cjs",
"node_modules/axios/dist/**/*.js",
"node_modules/zod/**/*.cjs"
],
"assets": [
"dist/webui/**/*",
"resources/bin/**/*"
],
"outputPath": "dist"
}
}