-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (41 loc) · 815 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
##
# Terraform practice
###
###
##@ Cleanup
###
.PHONY: clean
clean: ## Clean non-version controlled directories
@echo "- Cleaning the repo..."
rm -rf ./**/*/bin
rm -rf ./**/*/obj
rm -fr ./build && mkdir -p ./build/trivy
rm -rf ./node_modules
git clean -fX || true
@echo "✔ Done"
###
##@ Installing
###
.PHONY: install-npm
install-npm: ## Install npm dependencies
@echo "- Installing NPM packages..."
ifeq ($(CI),true)
npm ci
else
npm install
npm run husky-prep
endif
@echo "✔ Done"
###
##@ Validation
###
.PHONY: spellcheck-markdown
spellcheck-markdown: ## Spell checking Markdown file
@echo "- Spellcheck files..."
npm run md-spellcheck
@echo "✔ Done"
.PHONY: lint-markdown
lint-markdown: ## Lint the Markdown files
@echo "- Linting Markdown files..."
npm run md-lint
@echo "✔ Done"