mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
npm-{install-test, link, explain}: add option placeholders (#19910)
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
|
||||
- Explain why a specific package is installed:
|
||||
|
||||
`npm explain {{package_name}}`
|
||||
`npm {{[why|explain]}} {{package_name}}`
|
||||
|
||||
- Show explanation in JSON format:
|
||||
|
||||
`npm explain {{package_name}} --json`
|
||||
`npm {{[why|explain]}} {{package_name}} --json`
|
||||
|
||||
- Include peer dependencies in the explanation:
|
||||
|
||||
`npm explain {{package_name}} --include peer`
|
||||
`npm {{[why|explain]}} {{package_name}} --include peer`
|
||||
|
||||
- Limit explanation depth to 2 levels deep:
|
||||
|
||||
`npm explain {{package_name}} --depth 2`
|
||||
`npm {{[why|explain]}} {{package_name}} --depth 2`
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
- Install all dependencies and then run tests:
|
||||
|
||||
`npm install-test`
|
||||
`npm {{[it|install-test]}}`
|
||||
|
||||
- Install a specific package and then run tests:
|
||||
|
||||
`npm install-test {{package_name}}`
|
||||
`npm {{[it|install-test]}} {{package_name}}`
|
||||
|
||||
- Install a package and save it as a dependency before running tests:
|
||||
|
||||
`npm install-test {{package_name}} {{[-S|--save]}}`
|
||||
`npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}`
|
||||
|
||||
- Install dependencies globally and then run tests:
|
||||
|
||||
`npm install-test {{[-g|--global]}}`
|
||||
`npm {{[it|install-test]}} {{[-g|--global]}}`
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
|
||||
- Symlink the current package globally:
|
||||
|
||||
`npm link`
|
||||
`npm {{[ln|link]}}`
|
||||
|
||||
- Link a globally linked package into another project's `node_modules`:
|
||||
|
||||
`npm link {{package_name}}`
|
||||
`npm {{[ln|link]}} {{package_name}}`
|
||||
|
||||
- Unlink a package from the current project:
|
||||
|
||||
`npm unlink {{package_name}}`
|
||||
`npm {{[r|unlink]}} {{package_name}}`
|
||||
|
||||
Reference in New Issue
Block a user