Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-03-16 02:53:36 +0300
committerisaacs <i@izs.me>2021-03-18 21:58:08 +0300
commit68db12440fc9e851563b2c2acd85499776a2a63b (patch)
tree254e9b47ca13cf701aaf7406462d9b0e3de10262 /Makefile
parent6598bfe8697439e827d84981f8504febca64a55a (diff)
Auto-generate 'npm help 7 config' from actual definitions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4c9661520..656f64f79 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ docs-clean:
## build-time dependencies for the documentation
dev-deps:
- node bin/npm-cli.js install --only=dev --no-audit --ignore-scripts
+ node bin/npm-cli.js install --no-audit --ignore-scripts
## targets for man files, these are encouraged to be only built by running `make docs` or `make mandocs`
man/man1/%.1: docs/content/commands/%.md scripts/docs-build.js
@@ -68,6 +68,11 @@ man/man7/%.7: docs/content/using-npm/%.md scripts/docs-build.js
@[ -d man/man7 ] || mkdir -p man/man7
node scripts/docs-build.js $< $@
+# Any time the config definitions description changes, automatically
+# update the documentation to account for it
+docs/content/using-npm/config.md: scripts/config-doc.js lib/utils/config/*.js
+ node scripts/config-doc.js
+
test: dev-deps
node bin/npm-cli.js test