Add build and check scripts for CI
This commit is contained in:
6
scripts/build.sh
Normal file
6
scripts/build.sh
Normal 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
9
scripts/check.sh
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user