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
path: root/man1
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-12-23 23:13:15 +0300
committerisaacs <i@izs.me>2010-12-23 23:18:45 +0300
commit205296a804bee6519fa2273ac0ea722f7d104450 (patch)
tree079e5c1009f850f065162f8ff6c322940ebf654c /man1
parente8e5d91cf56ebef17522b4e83f20c7709700dcef (diff)
scripts cmd doc update
Diffstat (limited to 'man1')
-rw-r--r--man1/scripts.122
1 files changed, 21 insertions, 1 deletions
diff --git a/man1/scripts.1 b/man1/scripts.1
index 8f64419f9..39f2aee39 100644
--- a/man1/scripts.1
+++ b/man1/scripts.1
@@ -1,7 +1,7 @@
.\" Generated with Ronnjs/v0.1
.\" http://github.com/kapouer/ronnjs/
.
-.TH "NPM\-SCRIPTS" "1" "November 2010" "" ""
+.TH "NPM\-SCRIPTS" "1" "December 2010" "" ""
.
.SH "NAME"
\fBnpm-scripts\fR \-\- How npm handles the "scripts" field
@@ -58,8 +58,28 @@ Run BEFORE the package dependencies are pointed to the new version\.
updatedependencies, postupdatedependencies:
Run AFTER the package dependencies are pointed to the new version\.
.
+.IP "\(bu" 4
+pretest, test, posttest:
+Run by the \fBnpm test\fR command\.
+.
+.IP "\(bu" 4
+prestop, stop, poststop:
+Run by the \fBnpm stop\fR command\.
+.
+.IP "\(bu" 4
+prestart, start, poststart:
+Run by the \fBnpm start\fR command\.
+.
+.IP "\(bu" 4
+prerestart, restart, postrestart:
+Run by the \fBnpm restart\fR command\. Note: \fBnpm restart\fR will run the
+stop and start scripts if no \fBrestart\fR script is provided\.
+.
.IP "" 0
.
+.P
+Additionally, arbitrary scrips can be run by doing \fBnpm run\-script <stage> <pkg>\fR\|\.
+.
.SH "ENVIRONMENT"
Package scripts run in an environment where many pieces of information are made available regarding the setup of npm and the current state of the process\.
.