All scripts are run with npm run <script> (or npm run tauri <subcommand>
for the Tauri CLI).
| Script | Command | Description |
|---|---|---|
dev |
vite |
Starts the Vite dev server at http://localhost:1420 for browser-only frontend preview. No Tauri runtime, so native APIs are unavailable. |
build |
tsc && vite build |
Type-checks the project, then produces a production frontend bundle in dist/. This runs automatically before tauri build. |
preview |
vite preview |
Serves the built dist/ output locally, for sanity-checking the production bundle without Tauri. |
tauri |
tauri |
Passthrough to the Tauri CLI. Common subcommands below. |
tauri dev |
— | Runs the app as a native desktop window with hot-reload (frontend + Rust). The primary way to develop and run Anime Vault. |
tauri build |
— | Builds the native installer/binary under src-tauri/target/release/bundle/. |
- Phase 2 (database): a
db:migrateor seed helper oncetauri-plugin-sqlmigrations exist undersrc-tauri/migrations/. - Linting/formatting: not configured yet — if added,
lint/formatscripts will appear here.
See the Dockerfile for the exact build/run commands — it is scoped to previewing the frontend in a browser only (see README for why it cannot run the native desktop app).
docker build -t anime-vault-preview .
docker run --rm -p 4173:4173 anime-vault-previewThen open http://localhost:4173 in a browser.