2024-07-11 10:39:42 +00:00
|
|
|
# These commands must be run from the VictoriaMetrics repository root.
|
|
|
|
|
|
|
|
# Builds cspell image.
|
|
|
|
cspell-install:
|
2025-01-02 11:52:24 +00:00
|
|
|
@docker build cspell -t cspell
|
2024-07-11 10:39:42 +00:00
|
|
|
|
|
|
|
# Checks for spelling errors.
|
2025-01-02 11:52:24 +00:00
|
|
|
cspell-check: CMD="--no-progress -r /vm"
|
|
|
|
cspell-check: cspell-install cspell-run
|
2024-07-11 10:39:42 +00:00
|
|
|
|
|
|
|
# Runs spelling error check.
|
|
|
|
# A user facing alias to cspell-check command.
|
|
|
|
spellcheck: cspell-check
|
|
|
|
|
|
|
|
# Runs cspell container commands.
|
2025-01-02 11:52:24 +00:00
|
|
|
cspell-run:
|
2024-07-11 10:39:42 +00:00
|
|
|
@-docker run \
|
2025-01-02 11:52:24 +00:00
|
|
|
--mount type=bind,src="$(PWD)",dst=/vm \
|
2024-07-11 10:39:42 +00:00
|
|
|
--rm \
|
2025-01-02 11:52:24 +00:00
|
|
|
cspell -c cspell/cspell.json "$(CMD)"
|
2024-07-11 10:39:42 +00:00
|
|
|
|
2024-09-13 10:14:24 +00:00
|
|
|
cspell-update-deps: cspell-install
|
2025-01-02 11:52:24 +00:00
|
|
|
@-docker run \
|
|
|
|
--mount type=bind,src="$(PWD)",dst=/vm \
|
|
|
|
--entrypoint=/bin/sh \
|
|
|
|
--workdir=/vm/cspell \
|
|
|
|
--rm \
|
|
|
|
cspell -c "yarn install && yarn upgrade && rm -rf ./node_modules"
|