Whitelist native build scripts and add Makefile rebuild target

This commit is contained in:
2026-04-23 20:47:19 +04:00
parent 8ca9ea157c
commit 49b081c00b
7 changed files with 9512 additions and 7098 deletions

View File

@@ -1,12 +1,13 @@
.DEFAULT_GOAL := help
.PHONY: help install init dev dev-backend dev-frontend build start \
.PHONY: help install rebuild init dev dev-backend dev-frontend build start \
db-import db-dump admin clean clean-db docker-up docker-down docker-logs
help:
@echo "PCA Pijac — available targets:"
@echo ""
@echo " make init Install deps and import DB from schema/dump.sql"
@echo " make init Install deps, rebuild native modules, import DB"
@echo " make install Install deps in root, backend, frontend"
@echo " make rebuild Rebuild native modules (argon2, sqlite3, sharp)"
@echo " make dev Run backend + frontend in dev (parallel)"
@echo " make dev-backend Run Directus backend only (nodemon)"
@echo " make dev-frontend Run Next.js frontend only"
@@ -30,7 +31,11 @@ install:
cd backend && pnpm install
cd frontend && pnpm install
init: install db-import
rebuild:
cd backend && pnpm install --force
cd frontend && pnpm install --force
init: install rebuild db-import
@echo "Init complete. Run 'make admin EMAIL=... PASSWORD=...' to create an admin user."
dev: