/
Makefile
23 lines (16 loc) 路 734 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
#!/usr/bin/make
SHELL = /bin/bash
DC_RUN_ARGS = --rm --user "$(shell id -u):$(shell id -g)"
.PHONY : help install shell lint test build
.DEFAULT_GOAL : help
help: ## Show this help
@printf "\033[33m%s:\033[0m\n" 'Available commands'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install all dependencies
docker-compose run $(DC_RUN_ARGS) node yarn install --no-progress --non-interactive
shell: ## Start shell into a container with node
docker-compose run $(DC_RUN_ARGS) node sh
lint: ## Execute provided linters
docker-compose run $(DC_RUN_ARGS) node yarn lint
build: ## Build frontend
docker-compose run $(DC_RUN_ARGS) node yarn build