-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
70 lines (46 loc) · 2.17 KB
/
Copy pathmakefile
File metadata and controls
70 lines (46 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: help install start stop build test lint typecheck
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: package.json ## Install dependencies
npm install
SUPABASE_WORKDIR := $(shell pwd)
start-supabase: ## Start the local Supabase instance (ports 54331-54334)
npx supabase --workdir $(SUPABASE_WORKDIR) start
start-app: ## Start the Angular dev server on http://localhost:4200
npx @angular/cli@19 serve --port 4200
start: start-supabase start-app ## Start the full stack (Supabase + Angular dev server)
stop-supabase: ## Stop the local Supabase instance
npx supabase --workdir $(SUPABASE_WORKDIR) stop
stop: stop-supabase ## Stop the full stack
supabase-migrate: ## Apply pending migrations
npx supabase --workdir $(SUPABASE_WORKDIR) migration up
supabase-reset: ## Reset and reseed the local database (destructive)
npx supabase --workdir $(SUPABASE_WORKDIR) db reset
seed-demo: ## Seed the database with demo data (15 contacts, 8 companies, 5 deals)
docker exec -i supabase_db_atomic-crm-angular psql -U postgres postgres < $(SUPABASE_WORKDIR)/supabase/seed_demo.sql
supabase-new-migration: ## Create a new migration (usage: make supabase-new-migration name=my_migration)
npx supabase --workdir $(SUPABASE_WORKDIR) migration new $(name)
build: ## Build the production bundle
npx @angular/cli@19 build --configuration production
build-dev: ## Build a development bundle
npx @angular/cli@19 build --configuration development
test: ## Run unit tests (single run)
npx @angular/cli@19 test --watch=false
test-watch: ## Run unit tests in watch mode
npx @angular/cli@19 test
lint: ## Run ESLint
npm run lint
typecheck: ## Run TypeScript type checking
npx tsc --noEmit
build: ## Build the production bundle
npx @angular/cli@19 build --configuration production
build-dev: ## Build a development bundle
npx @angular/cli@19 build --configuration development
test: ## Run unit tests
npx @angular/cli@19 test --watch=false
test-watch: ## Run unit tests in watch mode
npx @angular/cli@19 test
lint: ## Run ESLint
npm run lint
typecheck: ## Run TypeScript type checking
npx tsc --noEmit