Add build and check scripts for CI

This commit is contained in:
2025-12-24 17:03:42 -06:00
parent 881c5d04be
commit b1d4d24b18
2 changed files with 15 additions and 0 deletions

6
scripts/build.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
echo "Building app..."
VITE_APP_VERSION=$(node -p "require('./package.json').version") npm run build

9
scripts/check.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
echo "Running Svelte sync..."
npx svelte-kit sync
echo "Running svelte-check (fail on warnings)..."
npx svelte-check --tsconfig ./tsconfig.json --fail-on-warnings