-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
58 lines (47 loc) · 1.38 KB
/
Makefile
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
REPO_ROOT ?= $(shell git rev-parse --show-toplevel)
-include $(REPO_ROOT)/base.mk
ifneq ("$(wildcard $(REPO_ROOT)/pnpm-lock.yaml)","")
EXEC=pnpm exec
PM=pnpm
else
EXEC=npx
PM=npm
endif
info:
@echo `uname -a`
@echo
@echo DOCKER_REGISTRY=$(DOCKER_REGISTRY)
@echo IMAGE_REGISTRY=$(IMAGE_REGISTRY)
@echo CI=$(CI)
deploy:
pnpm turbo run deploy --filter=@wener/dash --filter=@wener/apis --filter=@wener/server
test:
$(EXEC) turbo run test
fmt:
$(EXEC) turbo run fmt
build:
$(EXEC) turbo run build --filter=web --filter=console --filter=server
dev:
$(EXEC) turbo run dev --parallel
clean:
$(EXEC) turbo run clean --parallel
typedoc:
-$(EXEC) typedoc --entryPointStrategy packages packages/{utils,reaction} --out out/typedoc --name "Wener Wode" --gitRemote [email protected]:wenerme/wode.git
ci-install:
-command -v jq > /dev/null || yum install jq -y
-command -v rsync > /dev/null || yum install rsync -y
ci-build:
pnpm turbo run image-push --filter=@wener/dash --filter=@wener/apis --filter=@wener/server
# Vercel
ci-demo: ci-install
$(EXEC) turbo run build --filter=@wener/demo --force
$(MAKE) typedoc
-mv out/typedoc apps/demo/public/docs
ci-apis: ci-install
$(EXEC) turbo run build --filter=@wener/apis --force
$(MAKE) typedoc
-mv out/typedoc apps/apis/public/docs
outdated:
pnpm outdated -r | grep -v lexical | grep -v '@tiptap' | grep -v '^├─'
prepare:
npm add -g pnpm@latest