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:
authorArturo Coronel <aoitsu3@gmail.com>2016-02-23 13:21:57 +0300
committerKat Marchán <kzm@sykosomatic.org>2016-02-25 01:34:45 +0300
commitf9610920079d8b88ae464b30007a92c594bd85a8 (patch)
tree11c96edf3685df1ffc6a4da2766e05719b4cb544
parent7c908b618f7123f0a3b860c71eb779e33df35964 (diff)
doc: `--save-bundle` option for npm install
Fixes: #11636. PR-URL: https://github.com/npm/npm/pull/11645 Credit: @datyayu
-rw-r--r--doc/cli/npm-install.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/cli/npm-install.md b/doc/cli/npm-install.md
index 4ae9bb958..f0cca201e 100644
--- a/doc/cli/npm-install.md
+++ b/doc/cli/npm-install.md
@@ -7,7 +7,7 @@ npm-install(1) -- Install a package
npm install <tarball file>
npm install <tarball url>
npm install <folder>
- npm install [@<scope>/]<name> [--save|--save-dev|--save-optional] [--save-exact]
+ npm install [@<scope>/]<name> [--save|--save-dev|--save-optional] [--save-exact] [--save-bundle]
npm install [@<scope>/]<name>@<tag>
npm install [@<scope>/]<name>@<version>
npm install [@<scope>/]<name>@<version range>
@@ -45,7 +45,7 @@ after packing it up into a tarball (b).
By default, `npm install` will install all modules listed as dependencies
in `package.json(5)`.
-
+
With the `--production` flag (or when the `NODE_ENV` environment variable
is set to `production`), npm will not install modules listed in
`devDependencies`.
@@ -95,15 +95,13 @@ after packing it up into a tarball (b).
* `--save-optional`: Package will appear in your `optionalDependencies`.
When using any of the above options to save dependencies to your
- package.json, there is an additional, optional flag:
+ package.json, there are two additional, optional flags:
* `--save-exact`: Saved dependencies will be configured with an
exact version rather than using npm's default semver range
operator.
- `<scope>` is optional. The package will be downloaded from the registry
- associated with the specified scope. If no registry is associated with
- the given scope the default registry is assumed. See `npm-scope(7)`.
+ * `-B, --save-bundle`: Saved dependencies will also be added to your `bundleDependencies` list.
Note: if you do not include the @-symbol on your scope name, npm will
interpret this as a GitHub repository instead, see below. Scopes names
@@ -117,6 +115,7 @@ after packing it up into a tarball (b).
npm install node-tap --save-dev
npm install dtrace-provider --save-optional
npm install readable-stream --save --save-exact
+ npm install ansi-regex --save --save-bundle
**Note**: If there is a file or folder named `<name>` in the current