forked from vicinaehq/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (25 loc) · 661 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (25 loc) · 661 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
clean:
find . -name 'node_modules' -type d -exec rm -rf {} \;
.PHONY: clean
deploy:
bun scripts/deploy-extension.ts $(shell ls -1 extensions)
.PHONY: deploy
validate-all:
bun scripts/validate-extension.ts $(shell ls -1 extensions)
.PHONY:
validate-all
deploy-single:
@if [ -z "$(EXT)" ]; then \
echo "Usage: make deploy-single EXT=extension-name"; \
exit 1; \
fi
bun scripts/deploy-extension.ts $(EXT)
.PHONY: deploy-single
validate:
@if [ -z "$(EXT)" ]; then \
echo "Usage: make validate EXT=extension-name"; \
echo "Or: make validate EXT=\"ext1 ext2 ext3\""; \
exit 1; \
fi
bun scripts/validate-extension.ts $(EXT)
.PHONY: validate