Justfile and updated README

This commit is contained in:
2026-03-17 20:12:01 +02:00
parent 69290f3192
commit 000eb3367a
2 changed files with 50 additions and 0 deletions

34
justfile Normal file
View File

@@ -0,0 +1,34 @@
# Default deploy destination
deploy_dir := "/var/www/tietokonepaja-fi"
# Start development server
dev:
npm run dev
# Build for production (with type-check and .htaccess copy)
build:
npm run build
# Preview production build locally
preview:
npm run preview
# Build without type-checking
build-only *args:
npm run build-only -- {{args}}
# Type-check with vue-tsc
type-check:
npm run type-check
# Lint and auto-fix
lint:
npm run lint
# Format source files with Prettier
format:
npm run format
# Build and deploy dist to the given directory (default: /var/www/tietokonepaja-fi)
deploy dest=deploy_dir: build
cp -r dist/. {{dest}}