-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 778 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 778 Bytes
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
.ONESHELL:
.EXPORT_ALL_VARIABLES:
.PHONY: pre-commit changelog release test
SHELL := /bin/bash
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
hooks: ## Commit hooks setup
@pre-commit install
@pre-commit gc
@pre-commit autoupdate
validate: ## Validate with pre-commit hooks
@pre-commit run --all-files
changelog: ## Update changelog
git-chglog -o CHANGELOG.md --next-tag `semtag final -s minor -o`
release: ## Create release version
semtag final -s minor
validatejs: ## Validate solution
@npm run dev:install
@npm run format
@npm run lint
test: LOG_LEVEL=ERROR
test: ## Test solution
$(if ${LOG_LEVEL},,$(error Must pass LOG_LEVEL=<DEBUG|INFO|WARN|ERROR>))
@npm test