forked from hms-dbmi-cellenics/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (29 loc) · 913 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
#!make
#----------------------------------------
# Settings
#----------------------------------------
.DEFAULT_GOAL := help
#--------------------------------------------------
# Targets
#--------------------------------------------------
install: ## Installs node dependencies
@npm install
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"
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}'