diff options
author | isaacs <i@izs.me> | 2021-03-16 02:53:36 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-03-18 21:58:08 +0300 |
commit | 68db12440fc9e851563b2c2acd85499776a2a63b (patch) | |
tree | 254e9b47ca13cf701aaf7406462d9b0e3de10262 /Makefile | |
parent | 6598bfe8697439e827d84981f8504febca64a55a (diff) |
Auto-generate 'npm help 7 config' from actual definitions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |