.PHONY: install build test

install:
	composer install --no-interaction --prefer-dist
	@test -f .env || cp .env.example .env
	@php artisan key:generate --force --no-interaction
	@mkdir -p database
	@test -f database/database.sqlite || touch database/database.sqlite
	@php artisan migrate --force --no-interaction
	npm ci

build:
	npm run build

test:
	@php artisan test --no-interaction
	npm test
