Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit 1ce2042

Browse files
watildeaddaleax
authored andcommitted
build: add lint-md-build
PR-URL: nodejs/node#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 c1e8b14 commit 1ce2042

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
@@ -106,6 +106,8 @@ deps/npm/node_modules/.bin/
106106

107107
# test artifacts
108108
tools/faketime
109+
tools/remark-cli
110+
tools/remark-preset-lint-node
109111
icu_config.gypi
110112
*.tap
111113

Makefile

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

949949
bench-ci: bench
950950

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

0 commit comments

Comments
 (0)