forked from marmelab/atomic-crm
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
108 lines (73 loc) · 2.44 KB
/
makefile
File metadata and controls
108 lines (73 loc) · 2.44 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.PHONY: build help
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;
@(cd server && npm install)
start-supabase: ## start supabase locally
npx supabase start
start-supabase-functions: ## start the supabase Functions watcher
npx supabase functions serve
supabase-migrate-database: ## apply the migrations to the database
npx supabase migration up
supabase-reset-database: ## reset (and clear!) the database
npx supabase db reset
start-app: ## start the app locally
npm run dev
install-server: ## install server dependencies
@(cd server && npm install)
start-server: ## start the CopilotKit runtime server
@(cd server && npm run dev)
start-mcp: ## start the MCP contract analyzer server
@(cd server && npm run dev:mcp)
start: start-supabase start-app ## start the stack locally
start-demo: ## start the app locally in demo mode
npm run dev:demo
start-all: ## start everything (app + CopilotKit server + MCP server)
npm run dev:all
stop-supabase: ## stop local supabase
npx supabase stop
stop: stop-supabase ## stop the stack locally
build: ## build the app
npm run build
build-demo: ## build the app in demo mode
npm run build:demo
prod-start: build supabase-deploy
open http://127.0.0.1:3000 && npx serve -l tcp://127.0.0.1:3000 dist
prod-deploy: build supabase-deploy
npm run ghpages:deploy
supabase-remote-init:
npm run supabase:remote:init
$(MAKE) supabase-deploy
supabase-deploy:
npx supabase db push
npx supabase functions deploy
test:
npm test
test-ci:
CI=1 npm test
lint:
npm run lint
npm run prettier
publish:
npm publish
typecheck:
npm run typecheck
doc-install:
@(cd doc && npm install)
doc: doc-dev
doc-dev:
@(cd doc && npm run dev)
doc-build:
@(cd doc && npm run build)
doc-preview: doc-build
@(cd doc && npm run preview)
doc-deploy:
@(cd doc && npx gh-pages -b gh-pages -d dist -e doc -m "Deploy docs" --remove doc)
registry-build: ## build the shadcn registry
npm run registry:build
registry-deploy: registry-build ## Deploy the shadcn registry (Automatically done by CI/CD pipeline)
@(cd public/r && npx gh-pages -b gh-pages -d ./ -s atomic-crm.json -e r -m "Deploy registry" --remove r)
registry-gen: ## Generate the shadcn registry (ran automatically by a pre-commit hook)
npm run registry:gen
npx prettier --config ./.prettierrc.json --write "registry.json"