-
Notifications
You must be signed in to change notification settings - Fork 232
/
Makefile
27 lines (20 loc) · 929 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
SPEC_GENERATOR_VER=1.5.0
.PHONY: install
all: website
clean:
rm -rf ./out
install:
@INSTALLED_VERSION=$$(spec-generator --version); \
if [ "$$INSTALLED_VERSION" != "$(SPEC_GENERATOR_VER)" ]; then \
echo "Installed version ($$INSTALLED_VERSION) is different from the desired version ($(SPEC_GENERATOR_VER))."; \
echo "Installing spec-generator@v$(SPEC_GENERATOR_VER)"; \
npm install -g spec-generator@v$(SPEC_GENERATOR_VER); \
else \
echo "spec-generator is already installed at the desired version ($(SPEC_GENERATOR_VER))."; \
fi
website: clean install
spec-generator -c .config.json
watch: clean install
spec-generator -c .config.json -w
superlinter:
docker run --rm -e VALIDATE_ALL_CODEBASE=false -e RUN_LOCAL=true -e VALIDATE_MARKDOWN=true -e MARKDOWN_CONFIG_FILE=".markdownlint.json" -e LINTER_RULES_PATH="." -e DEFAULT_BRANCH='main' -v $(shell pwd):/tmp/lint ghcr.io/super-linter/super-linter:slim-v7