mumei-dashboard 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/bin/mumei-dashboard.mjs +2 -2
- package/dist/assets/index-BHULKI8F.js +49 -0
- package/dist/assets/index-DHEyKEQT.css +2 -0
- package/dist/index.html +2 -2
- package/dist/server/index.js +14071 -11159
- package/dist/server/index.js.map +1 -1
- package/package.json +8 -9
- package/dist/assets/index-DOnPH8LN.css +0 -2
- package/dist/assets/index-DZENjDKZ.js +0 -47
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ preview at `http://localhost:5173` during development.
|
|
|
20
20
|
```bash
|
|
21
21
|
cd dashboard
|
|
22
22
|
npm install
|
|
23
|
-
npm run
|
|
23
|
+
npm run schemas # regenerate ../schemas/*.schema.json from src/schemas/*.ts (TypeBox canonical)
|
|
24
24
|
npm run dev # spawns Fastify (server) + Vite (frontend)
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -29,14 +29,14 @@ npm run dev # spawns Fastify (server) + Vite (frontend)
|
|
|
29
29
|
|
|
30
30
|
## Scripts
|
|
31
31
|
|
|
32
|
-
| Script
|
|
33
|
-
|
|
|
34
|
-
| `npm run dev`
|
|
35
|
-
| `npm run build`
|
|
36
|
-
| `npm run typecheck`
|
|
37
|
-
| `npm run
|
|
38
|
-
| `npm test`
|
|
39
|
-
| `npm run lint`
|
|
32
|
+
| Script | Purpose |
|
|
33
|
+
| ------------------- | ---------------------------------------------------------------------------- |
|
|
34
|
+
| `npm run dev` | Server + Vite, both with watch mode |
|
|
35
|
+
| `npm run build` | Produce `dist/` for production |
|
|
36
|
+
| `npm run typecheck` | `tsc -b --noEmit` across app + server |
|
|
37
|
+
| `npm run schemas` | Regenerate `../schemas/*.schema.json` from TypeBox sources in `src/schemas/` |
|
|
38
|
+
| `npm test` | Vitest |
|
|
39
|
+
| `npm run lint` | Biome `check --error-on-warnings` |
|
|
40
40
|
|
|
41
41
|
## Architecture
|
|
42
42
|
|
package/bin/mumei-dashboard.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Entry point for `npx
|
|
2
|
+
// Entry point for `npx mumei-dashboard`. Boots the Fastify server in
|
|
3
3
|
// the user's current working directory (which is read as the project
|
|
4
4
|
// root). The Vite dev server is a separate concern handled by
|
|
5
5
|
// `npm run dev` from the dashboard repo; the published bin always
|
|
@@ -26,7 +26,7 @@ if (!existsSync(builtEntry)) {
|
|
|
26
26
|
process.on('SIGTERM', () => child.kill('SIGTERM'))
|
|
27
27
|
} else {
|
|
28
28
|
console.error(
|
|
29
|
-
'
|
|
29
|
+
'mumei-dashboard: no built server found at dist/server/index.js. Run `npm run build:server`.',
|
|
30
30
|
)
|
|
31
31
|
process.exit(1)
|
|
32
32
|
}
|