-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
31 lines (31 loc) · 984 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
#!make
#----------------------------------------
# Settings
#----------------------------------------
.DEFAULT_GOAL := help
#--------------------------------------------------
# Targets
#--------------------------------------------------
install: ## Installs node dependencies
@npm ci
build: ## Creates a production build
@npm run build
test: ## Executes unit tests
@npm run test
check: ## Checks code for linting/construct errors
@echo "==> Checking if files are well formatted..."
@npm run lint
@npm run detect-secrets
@echo " [✓]\n"
hooks: ## Configures path to git hooks
@git config core.hooksPath .githooks
run: ## Runs the UI
@npm start
.PHONY:install build check run help
clean: ## Cleans up temporary files
@echo "==> Cleaning up node modules ..."
@rm -r node_modules
@echo " [✓]"
@echo ""
help: ## Shows available targets
@fgrep -h "## " $(MAKEFILE_LIST) | fgrep -v fgrep | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-13s\033[0m %s\n", $$1, $$2}'