-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.15 KB
/
Makefile
File metadata and controls
41 lines (32 loc) · 1.15 KB
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
# https://www.client9.com/self-documenting-makefiles/
help: ## Shows help
@awk -F ':|##' '/^[^\t].+?:.*?##/ {\
printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST)
install: ## Install All Directories
npm i
npm i --prefix backend-api
npm i --prefix frontend-web
npm-audit: ## Run npm audit
npm audit
npm audit --prefix backend-api
npm audit --prefix frontend-web
npm-audit-fix: ## Run npm audit fix
npm audit fix
npm audit fix --prefix backend-api
npm audit fix --prefix frontend-web
lint: ## Run linting for all projects
npm --prefix backend-api run lint
npm --prefix frontend-web run lint
lint-fix: ## Run linting with auto-fix for all projects
npm --prefix backend-api run lint:fix
npm --prefix frontend-web run lint:fix
env-setup-local: ## Setup dotenvs
cp backend-api/.env.example backend-api/.env
cp frontend-web/.env.local.example frontend-web/.env.local
package-reset-safe: ## Remove node_modules and package-lock.json safely
rm -rf node_modules package-lock.json
rm -rf backend-api/node_modules backend-api/package-lock.json
rm -rf frontend-web/node_modules frontend-web/package-lock.json
.DEFAULT_GOAL=help
.PHONY=help