diff options
Diffstat (limited to 'deps/npm/doc/api')
-rw-r--r-- | deps/npm/doc/api/npm-ls.md | 2 | ||||
-rw-r--r-- | deps/npm/doc/api/npm-restart.md | 33 | ||||
-rw-r--r-- | deps/npm/doc/api/npm-start.md | 4 |
3 files changed, 29 insertions, 10 deletions
diff --git a/deps/npm/doc/api/npm-ls.md b/deps/npm/doc/api/npm-ls.md index ed890ff146..5de78f2104 100644 --- a/deps/npm/doc/api/npm-ls.md +++ b/deps/npm/doc/api/npm-ls.md @@ -52,5 +52,5 @@ List packages in the global install prefix instead of in the current project. Note, if parseable is set or long isn't set, then duplicates will be trimmed. -This means that if a submodule a same dependency as a parent module, then the +This means that if a submodule has the same dependency as a parent module, then the dependency will only be output once. diff --git a/deps/npm/doc/api/npm-restart.md b/deps/npm/doc/api/npm-restart.md index c40704438e..606c41bf85 100644 --- a/deps/npm/doc/api/npm-restart.md +++ b/deps/npm/doc/api/npm-restart.md @@ -1,5 +1,5 @@ -npm-restart(3) -- Start a package -================================= +npm-restart(3) -- Restart a package +=================================== ## SYNOPSIS @@ -7,14 +7,33 @@ npm-restart(3) -- Start a package ## DESCRIPTION -This runs a package's "restart" script, if one was provided. -Otherwise it runs package's "stop" script, if one was provided, and then -the "start" script. +This restarts a package (or multiple packages). + +This runs a package's "stop", "restart", and "start" scripts, and associated +pre- and post- scripts, in the order given below: + +1. prerestart +2. prestop +3. stop +4. poststop +5. restart +6. prestart +7. start +8. poststart +9. postrestart If no version is specified, then it restarts the "active" version. -npm can run tests on multiple packages. Just specify multiple packages -in the `packages` parameter. +npm can restart multiple packages. Just specify multiple packages in +the `packages` parameter. + +## NOTE + +Note that the "restart" script is run **in addition to** the "stop" +and "start" scripts, not instead of them. + +This is the behavior as of `npm` major version 2. A change in this +behavior will be accompanied by an increase in major version number ## SEE ALSO diff --git a/deps/npm/doc/api/npm-start.md b/deps/npm/doc/api/npm-start.md index 74491146aa..deeea90d97 100644 --- a/deps/npm/doc/api/npm-start.md +++ b/deps/npm/doc/api/npm-start.md @@ -9,5 +9,5 @@ npm-start(3) -- Start a package This runs a package's "start" script, if one was provided. -npm can run tests on multiple packages. Just specify multiple packages -in the `packages` parameter. +npm can start multiple packages. Just specify multiple packages in the +`packages` parameter. |