diff options
author | Refael Ackermann <refack@gmail.com> | 2018-09-06 16:17:54 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2018-09-11 14:12:30 -0400 |
commit | e4dd213516afdff64063682e0d0d46c58499a9f3 (patch) | |
tree | accb9fda9082f0d19b953a5ea57a5b3d5458d116 /vcbuild.bat | |
parent | fe6c74c2a5c092b80b4ff988c6ca7883393f6b91 (diff) | |
download | android-node-v8-e4dd213516afdff64063682e0d0d46c58499a9f3.tar.gz android-node-v8-e4dd213516afdff64063682e0d0d46c58499a9f3.tar.bz2 android-node-v8-e4dd213516afdff64063682e0d0d46c58499a9f3.zip |
tools: use lint-md.js
* remove unused `tools/remark-cli`
* vcbuild tested with `vcbuild nobuild noprojgen lint-md-build lint-md`
PR-URL: https://github.com/nodejs/node/pull/20109
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'vcbuild.bat')
-rw-r--r-- | vcbuild.bat | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/vcbuild.bat b/vcbuild.bat index 6fe8d6b58d..e237cf9ee5 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -197,8 +197,6 @@ if defined TAG set configure_flags=%configure_flags% --tag=%TAG% if not "%target%"=="Clean" goto skip-clean rmdir /Q /S "%~dp0%config%\node-v%FULLVERSION%-win-%target_arch%" > nul 2> nul -rmdir /Q /S "%~dp0tools\remark-cli\node_modules" -rmdir /Q /S "%~dp0tools\remark-preset-lint-node\node_modules" :skip-clean if defined noprojgen if defined nobuild if not defined sign if not defined msi goto licensertf @@ -609,49 +607,23 @@ goto lint-md-build :lint-md-build if not defined lint_md_build goto lint-md -SETLOCAL -echo Markdown linter: installing remark-cli into tools\ -cd tools\remark-cli -%npm_exe% ci -cd ..\.. -if errorlevel 1 goto lint-md-build-failed -echo Markdown linter: installing remark-preset-lint-node into tools\ -cd tools\remark-preset-lint-node -%npm_exe% ci -cd ..\.. -if errorlevel 1 goto lint-md-build-failed -ENDLOCAL +echo "Deprecated no-op target 'lint_md_build'" goto lint-md -:if errorlevel 1 goto lint-md-build-failed -ENDLOCAL -echo Failed to install markdown linter -exit /b 1 - :lint-md if not defined lint_md goto exit -if not exist tools\remark-cli\node_modules goto lint-md-no-tools -if not exist tools\remark-preset-lint-node\node_modules goto lint-md-no-tools echo Running Markdown linter on docs... SETLOCAL ENABLEDELAYEDEXPANSION set lint_md_files= -cd doc -for /D %%D IN (*) do ( +for /D %%D IN (doc\*) do ( for %%F IN (%%D\*.md) do ( - set "lint_md_files="doc\%%F" !lint_md_files!" + set "lint_md_files="%%F" !lint_md_files!" ) ) -cd .. -%config%\node tools\remark-cli\cli.js -q -f %lint_md_files% +%config%\node tools\lint-md.js -q -f %lint_md_files% ENDLOCAL goto exit -:lint-md-no-tools -echo The markdown linter is not installed. -echo To install (requires internet access) run: vcbuild lint-md-build -goto exit - - :create-msvs-files-failed echo Failed to create vc project files. del .used_configure_flags |