mirror of
https://github.com/usestrix/strix.git
synced 2026-09-10 22:41:11 +00:00
Fix the viewer build command
This commit is contained in:
parent
1e4db0098b
commit
8bbcafcf1a
3 changed files with 3 additions and 5 deletions
|
|
@ -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/`.
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue