mirror of
https://github.com/usestrix/strix.git
synced 2026-08-16 09:26:39 +02:00
Fix the viewer build command
This commit is contained in:
+1
-1
@@ -108,7 +108,7 @@ JS build. If you change anything under `strix/viewer_src/`, rebuild and commit
|
||||
the output:
|
||||
|
||||
```bash
|
||||
make viewer # or: npm --prefix strix/viewer_src ci && npm --prefix strix/viewer_src run build
|
||||
make viewer # or: cd strix/viewer_src && npm ci && npm run build
|
||||
```
|
||||
|
||||
Commit both the source change and the regenerated `strix/viewer/viewer_dist/`.
|
||||
|
||||
@@ -69,8 +69,7 @@ clean:
|
||||
|
||||
viewer:
|
||||
@echo "🖥️ Building the local-viewer SPA..."
|
||||
npm --prefix strix/viewer_src ci
|
||||
npm --prefix strix/viewer_src run build
|
||||
cd strix/viewer_src && npm ci && npm run build
|
||||
@echo "✅ Viewer built to strix/viewer/viewer_dist/ (commit the changes)."
|
||||
|
||||
dev: format lint type-check
|
||||
|
||||
+1
-2
@@ -58,8 +58,7 @@ def run_view(argv: list[str]) -> None:
|
||||
if not bundle_is_built():
|
||||
console.print(
|
||||
"[bold red]Viewer UI is not built.[/]\n"
|
||||
"Build it with: [cyan]npm --prefix strix/viewer_src ci && "
|
||||
"npm --prefix strix/viewer_src run build[/]"
|
||||
"Build it with: [cyan]cd strix/viewer_src && npm ci && npm run build[/]"
|
||||
)
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user