Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.56 KB

File metadata and controls

33 lines (25 loc) · 1.56 KB

Scripts reference

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/.

Future scripts (added in later phases)

  • Phase 2 (database): a db:migrate or seed helper once tauri-plugin-sql migrations exist under src-tauri/migrations/.
  • Linting/formatting: not configured yet — if added, lint / format scripts will appear here.

Docker helper commands

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-preview

Then open http://localhost:4173 in a browser.