-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
48 lines (37 loc) · 1.46 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
.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
build-ra-auth-cognito:
@echo "Transpiling ra-auth-cognito files...";
@cd ./packages/ra-auth-cognito && yarn build
build-ra-auth-cognito-languages:
@echo "Transpiling ra-auth-cognito-language-english files...";
@cd ./packages/ra-auth-cognito-language-english && yarn build
@echo "Transpiling ra-auth-cognito-language-french files...";
@cd ./packages/ra-auth-cognito-language-french && yarn build
build-demo-react-admin:
@echo "Transpiling demo files...";
@cd ./packages/demo-react-admin && yarn build
build: build-ra-auth-cognito build-ra-auth-cognito-languages build-demo-react-admin ## compile ES6 files to JS
lint: ## lint the code and check coding conventions
@echo "Running linter..."
@yarn lint
prettier: ## prettify the source code using prettier
@echo "Running prettier..."
@yarn prettier
test: build lint ## launch all tests
start:
@cd ./packages/demo-react-admin && yarn dev
publish: ## Publish the packages
cd packages/ra-auth-cognito && npm publish
cd packages/ra-auth-cognito-language-english && npm publish
cd packages/ra-auth-cognito-language-french && npm publish