-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 769 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 769 Bytes
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
.PHONY: up dev db db-studio lint typecheck e2e migration-reconcile
# Start libsql and Next.js dev server together
up:
concurrently --names "db,web" --prefix-colors "blue,green" \
"sqld --db-path ./local.db --http-listen-addr 127.0.0.1:8080" \
"npm run dev"
# Start only Next.js dev server
dev:
npm run dev
# Start only libsql database
db:
sqld --db-path ./local.db --http-listen-addr 127.0.0.1:8080
# Open Drizzle Studio
db-studio:
npm run db:studio
# Run linter
lint:
npm run lint
# Run type checking
typecheck:
npm run typecheck
# Run Playwright e2e tests
e2e:
npm run e2e
migration-reconcile: ## Reset drizzle folder from main branch and regenerate migrations
rm -rf ./drizzle
git fetch
git checkout origin/main -- drizzle
npm run db:generate