55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
set shell := ["bash", "-c"]
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# Full completion gate. Start the worktree stack before running it because
|
|
# Cypress exercises the frontend and its backend wiring.
|
|
test-all:
|
|
@echo "==> frontend format + lint checks"
|
|
just frontend-format-check
|
|
just frontend-lint-check
|
|
@echo "==> frontend type check"
|
|
just frontend-type-check
|
|
@echo "==> backend static analysis"
|
|
just backend-types-check
|
|
@echo "==> frontend production build"
|
|
just frontend-build
|
|
@echo "==> backend tests"
|
|
just backend-test
|
|
@echo "==> frontend Cypress tests"
|
|
just frontend-cypress-run
|
|
|
|
# Backend
|
|
|
|
backend-test *args:
|
|
cd backend && php artisan test {{args}}
|
|
|
|
backend-types-check:
|
|
cd backend && composer types:check
|
|
|
|
fresh:
|
|
cd backend && php artisan migrate:fresh --seed
|
|
|
|
# Frontend
|
|
|
|
frontend-format:
|
|
cd frontend/website && npm run format
|
|
|
|
frontend-format-check:
|
|
cd frontend/website && npm run format:check
|
|
|
|
frontend-lint:
|
|
cd frontend/website && npm run lint
|
|
|
|
frontend-lint-check:
|
|
cd frontend/website && npm run lint:check
|
|
|
|
frontend-type-check:
|
|
cd frontend/website && npm run type-check
|
|
|
|
frontend-build:
|
|
cd frontend/website && npm run build-only
|
|
|
|
frontend-cypress-run:
|
|
cd frontend/website && npm run test:e2e
|