forked from marmelab/ra-auth-google
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (22 loc) · 994 Bytes
/
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
.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: ## Install all dependencies
yarn
prepare-env: ## Initialize the environment variable file for the demo
@cp -n ./packages/demo-react-admin/.env.template ./packages/demo-react-admin/.env
build-ra-auth-google:
@echo "Transpiling ra-auth-google files...";
@cd ./packages/ra-auth-google && yarn build
build-demo-react-admin:
@echo "Transpiling demo files...";
@cd ./packages/demo-react-admin && yarn build
build: build-ra-auth-google build-demo-react-admin ## compile ES6 files to JS
start-demo: ## Start the demo
@cd ./packages/demo-react-admin && yarn dev
start-fake-api: ## Start the fake API
@cd ./packages/demo-fake-api && yarn start
start: ## Start the demo
@(trap 'kill 0' INT; ${MAKE} start-fake-api & ${MAKE} start-demo)
publish: ## Publish the package
cd packages/ra-auth-google && npm publish