forked from scheilch/opencloudtouch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
159 lines (159 loc) · 5.23 KB
/
package.json
File metadata and controls
159 lines (159 loc) · 5.23 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
149
150
151
152
153
154
155
156
157
158
159
{
"name": "opencloudtouch",
"version": "1.2.0",
"private": true,
"description": "OpenCloudTouch - Local control for compatible streaming devices after cloud shutdown",
"type": "module",
"workspaces": [
"apps/frontend"
],
"scripts": {
"dev": "concurrently -n backend,frontend -c blue,magenta \"npm run dev:backend\" \"npm run dev:frontend\"",
"dev:backend": "cd apps/backend && ../../.venv/Scripts/python.exe -m uvicorn opencloudtouch.main:app --reload --host 0.0.0.0 --port 7777",
"dev:frontend": "npm run dev --workspace=apps/frontend",
"build": "npm run build --workspace=apps/frontend",
"preview": "npm run preview --workspace=apps/frontend",
"test": "npm run test:all",
"test:backend": "cd apps/backend && ..\\..\\.venv\\Scripts\\python.exe -m pytest tests -v -x --timeout=30 -n auto --cov=opencloudtouch --cov-report=term-missing --cov-report=html",
"test:frontend": "npm run test --workspace=apps/frontend",
"test:e2e": "node scripts/e2e-runner.mjs",
"test:all": "npm run test:backend && npm run test:frontend && npm run test:e2e",
"test:unit": "npm run test:backend && npm run test:frontend",
"screenshots": "npm run screenshots --workspace=apps/frontend",
"screenshots:open": "npm run screenshots:open --workspace=apps/frontend",
"test:ux": "npm run screenshots --workspace=apps/frontend",
"test:ux:run": "npm run screenshots:run --workspace=apps/frontend",
"audit:a11y": "npm run audit:a11y --workspace=apps/frontend",
"audit:a11y:run": "npm run audit:a11y:run --workspace=apps/frontend",
"audit:vision": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py",
"audit:vision:limit": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --limit 5",
"audit:vision:dry-run": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --dry-run",
"audit:vision:mini": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --model gpt-4o-mini --resume",
"audit:vision:gpt41": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --model gpt-4.1 --resume",
"audit:vision:gpt41-mini": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --model gpt-4.1-mini --resume",
"audit:vision:llama": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --model llama-vision --resume",
"audit:vision:llama-large": ".venv\\Scripts\\python.exe .local/tools/analyze_ux_screenshots.py --model llama-vision-large --resume",
"generate:openapi": "cd apps/backend && ..\\..\\.venv\\Scripts\\python.exe -c \"from opencloudtouch.main import app; import yaml; f=open('openapi.yaml','w',encoding='utf-8'); f.write(yaml.dump(app.openapi(),sort_keys=False,allow_unicode=True)); f.close(); print('OpenAPI YAML exported')\"",
"generate:types": "npx openapi-typescript apps/backend/openapi.yaml -o apps/frontend/src/api/generated/schema.ts",
"generate:api": "npm run generate:openapi && npm run generate:types",
"lint": "npm run lint --workspace=apps/frontend",
"clean": "npm run clean --workspaces --if-present && rimraf node_modules .venv data-local .out .pytest_cache"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.1.5",
"concurrently": "^9.1.2",
"license-checker": "^25.0.1",
"openapi-typescript": "^7.13.0",
"prettier": "^3.8.1",
"rimraf": "^6.0.1",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=10.0.0",
"python": ">=3.11"
},
"repository": {
"type": "git",
"url": "https://github.com/yourusername/opencloudtouch.git"
},
"keywords": [
"streaming",
"audio",
"home-automation",
"music",
"streaming"
],
"author": "Your Name",
"license": "Apache-2.0",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert"
]
],
"type-case": [
2,
"always",
"lower-case"
],
"type-empty": [
2,
"never"
],
"scope-case": [
2,
"always",
"lower-case"
],
"subject-empty": [
2,
"never"
],
"subject-full-stop": [
2,
"never",
"."
],
"subject-case": [
2,
"never",
[
"sentence-case",
"start-case",
"pascal-case",
"upper-case"
]
],
"header-max-length": [
2,
"always",
100
],
"body-leading-blank": [
1,
"always"
],
"body-max-line-length": [
2,
"always",
100
],
"footer-leading-blank": [
1,
"always"
]
}
},
"prettier": {
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always",
"endOfLine": "lf"
},
"dependencies": {
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1"
}
}