Skip to content

Commit 9185cfe

Browse files
watildegibfahn
authored andcommitted
build: add lint-md-build
PR-URL: #12756 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
1 parent ea415a6 commit 9185cfe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ deps/npm/node_modules/.bin/
104104

105105
# test artifacts
106106
tools/faketime
107+
tools/remark-cli
108+
tools/remark-preset-lint-node
107109
icu_config.gypi
108110
*.tap
109111

Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,13 @@ bench: bench-net bench-http bench-fs bench-tls
945945

946946
bench-ci: bench
947947

948-
lint-md:
948+
lint-md-build:
949+
if [ ! -d tools/remark-cli/node_modules ]; then \
950+
cd tools/remark-cli && ../../$(NODE) ../../$(NPM) install; fi
951+
if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
952+
cd tools/remark-preset-lint-node && ../../$(NODE) ../../$(NPM) install; fi
953+
954+
lint-md: lint-md-build
949955
@echo "Running Markdown linter..."
950956
$(NODE) tools/remark-cli/cli.js -q -f \
951957
./*.md doc src lib benchmark tools/doc/ tools/icu/

0 commit comments

Comments
 (0)