-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev
More file actions
executable file
·34 lines (29 loc) · 953 Bytes
/
Copy pathdev
File metadata and controls
executable file
·34 lines (29 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT"
cmd="${1:-help}"
shift || true
case "$cmd" in
dev) npm run dev ;;
dev:https) npm run dev -- --host 0.0.0.0 ;;
build) npm run build ;;
preview) npm run preview ;;
check) npm run check ;;
wasm) bash scripts/build-wasm.sh ;;
deploy) npx wrangler pages deploy build --project-name quanta "$@" ;;
help|*)
cat <<'EOF'
Quanta vault — local commands
./dev dev start the Vite dev server
./dev build build the static site into ./build
./dev preview preview the production build locally
./dev check run svelte-check (types + a11y)
./dev wasm rebuild the qarmor WASM bundle from source
./dev deploy deploy ./build to Cloudflare Pages (wrangler)
Deployment notes
Cloudflare Pages build command: npm ci && npm run build
Output directory: ./build
EOF
;;
esac