mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
build: add lint-md-build
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
f1329543d6
commit
212f4b981d
2 files changed
+9
-1
No files matched your search
@@ -104,6 +104,8 @@ deps/npm/node_modules/.bin/
|
||||
|
||||
# test artifacts
|
||||
tools/faketime
|
||||
tools/remark-cli
|
||||
tools/remark-preset-lint-node
|
||||
icu_config.gypi
|
||||
*.tap
|
||||
|
||||
|
||||
@@ -945,7 +945,13 @@ bench: bench-net bench-http bench-fs bench-tls
|
||||
|
||||
bench-ci: bench
|
||||
|
||||
lint-md:
|
||||
lint-md-build:
|
||||
if [ ! -d tools/remark-cli/node_modules ]; then \
|
||||
cd tools/remark-cli && ../../$(NODE) ../../$(NPM) install; fi
|
||||
if [ ! -d tools/remark-preset-lint-node/node_modules ]; then \
|
||||
cd tools/remark-preset-lint-node && ../../$(NODE) ../../$(NPM) install; fi
|
||||
|
||||
lint-md: lint-md-build
|
||||
@echo "Running Markdown linter..."
|
||||
$(NODE) tools/remark-cli/cli.js -q -f \
|
||||
./*.md doc src lib benchmark tools/doc/ tools/icu/
|
||||
|
||||
Reference in new issue
Block a user