-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (35 loc) · 1.11 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
.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
@if [ "$(CI)" != "true" ]; then \
echo "Full install..."; \
yarn; \
fi
@if [ "$(CI)" = "true" ]; then \
echo "Frozen install..."; \
yarn --frozen-lockfile; \
fi
run: ## run the demo
@yarn -s run-demo
run-prod: ## run the demo in prod
@yarn -s run-demo-prod
build-demo: ## compile the demo to static js
@yarn -s build-demo
build-ra-appwrite:
@echo "Transpiling ra-appwrite files...";
@cd ./packages/ra-appwrite && yarn build
build: build-ra-appwrite
lint: ## lint the code and check coding conventions
@echo "Running linter..."
@yarn -s lint
prettier: ## prettify the source code using prettier
@echo "Running prettier..."
@yarn -s prettier
test: build test-unit lint ## launch all tests
test-unit: ## launch unit tests
@echo "Running unit tests...";
@yarn -s test-unit;
test-unit-watch: ## launch unit tests and watch for changes
@echo "Running unit tests...";
@yarn -s test-unit --watch;