Permalink
Browse files

Add docs for test, stop, start, and restart commands. Bump version.

  • Loading branch information...
1 parent 539faf3 commit 33727a19e3a155fdf18a3a557a4b17566188c82f @isaacs isaacs committed May 11, 2010
Showing with 175 additions and 1 deletion.
  1. +5 −0 doc/npm.md
  2. +24 −0 doc/restart.md
  3. +12 −0 doc/start.md
  4. +12 −0 doc/stop.md
  5. +12 −0 doc/test.md
  6. +5 −0 man/npm.1
  7. +44 −0 man/restart.1
  8. +20 −0 man/start.1
  9. +20 −0 man/stop.1
  10. +20 −0 man/test.1
  11. +1 −1 package.json
View
@@ -139,6 +139,11 @@ See <http://github.com/isaacs/npm/issues> for current todo list.
Don't break on install if the man path is missing
Support publishing or installing a folder or local tarball
+* 0.1.8:
+ Bugfixes
+ Add start, stop, restart, and test commands
+
+
## SEE ALSO
npm-help(1)
View
@@ -0,0 +1,24 @@
+npm-restart(1) -- Start a package
+=================================
+
+## SYNOPSIS
+
+ npm restart <name> [<version>]
+
+## DESCRIPTION
+
+This runs a package's "stop" script, if one was provided, and then
+the "start" script.
+
+If no version is specified, then it restarts the "active" version.
+
+This is identical to doing:
+
+ npm stop <name>
+ npm start <name>
+
+## SEE ALSO
+
+* npm-start(1)
+* npm-stop
+
View
@@ -0,0 +1,12 @@
+npm-start(1) -- Start a package
+===============================
+
+## SYNOPSIS
+
+ npm start <name> [<version>]
+
+## DESCRIPTION
+
+This runs a package's "start" script, if one was provided.
+
+If no version is specified, then it starts the "active" version.
View
@@ -0,0 +1,12 @@
+npm-stop(1) -- Stop a package
+=============================
+
+## SYNOPSIS
+
+ npm stop <name> [<version>]
+
+## DESCRIPTION
+
+This runs a package's "stop" script, if one was provided.
+
+If no version is specified, then it stops the "active" version.
View
@@ -0,0 +1,12 @@
+npm-test(1) -- Test a package
+=============================
+
+## SYNOPSIS
+
+ npm test <name> [<version>]
+
+## DESCRIPTION
+
+This runs a package's "test" script, if one was provided.
+
+If no version is specified, then it tests the "active" version.
View
@@ -226,6 +226,11 @@ Handle odd require.paths more appropriately
Don't break on install if the man path is missing
Support publishing or installing a folder or local tarball
.
+.TP
+0.1.8
+Bugfixes
+Add start, stop, restart, and test commands
+.
.SH "SEE ALSO"
npm\-help(1)
.
View
@@ -0,0 +1,44 @@
+.\" generated with Ronn/v0.4.1
+.\" http://github.com/rtomayko/ronn/
+.
+.TH "NPM\-RESTART" "1" "May 2010" "" ""
+.
+.SH "NAME"
+\fBnpm\-restart\fR \-\- Start a package
+.
+.SH "SYNOPSIS"
+.
+.nf
+npm restart <name> [<version>]
+.
+.fi
+.
+.SH "DESCRIPTION"
+This runs a package's "stop" script, if one was provided, and then
+the "start" script.
+.
+.P
+If no version is specified, then it restarts the "active" version.
+.
+.P
+This is identical to doing:
+.
+.IP "" 4
+.
+.nf
+npm stop <name>
+npm start <name>
+.
+.fi
+.
+.IP "" 0
+.
+.SH "SEE ALSO"
+.
+.IP "\(bu" 4
+npm\-start(1)
+.
+.IP "\(bu" 4
+npm\-stop
+.
+.IP "" 0
View
@@ -0,0 +1,20 @@
+.\" generated with Ronn/v0.4.1
+.\" http://github.com/rtomayko/ronn/
+.
+.TH "NPM\-START" "1" "May 2010" "" ""
+.
+.SH "NAME"
+\fBnpm\-start\fR \-\- Start a package
+.
+.SH "SYNOPSIS"
+.
+.nf
+npm start <name> [<version>]
+.
+.fi
+.
+.SH "DESCRIPTION"
+This runs a package's "start" script, if one was provided.
+.
+.P
+If no version is specified, then it starts the "active" version.
View
@@ -0,0 +1,20 @@
+.\" generated with Ronn/v0.4.1
+.\" http://github.com/rtomayko/ronn/
+.
+.TH "NPM\-STOP" "1" "May 2010" "" ""
+.
+.SH "NAME"
+\fBnpm\-stop\fR \-\- Stop a package
+.
+.SH "SYNOPSIS"
+.
+.nf
+npm stop <name> [<version>]
+.
+.fi
+.
+.SH "DESCRIPTION"
+This runs a package's "stop" script, if one was provided.
+.
+.P
+If no version is specified, then it stops the "active" version.
View
@@ -0,0 +1,20 @@
+.\" generated with Ronn/v0.4.1
+.\" http://github.com/rtomayko/ronn/
+.
+.TH "NPM\-TEST" "1" "May 2010" "" ""
+.
+.SH "NAME"
+\fBnpm\-test\fR \-\- Test a package
+.
+.SH "SYNOPSIS"
+.
+.nf
+npm test <name> [<version>]
+.
+.fi
+.
+.SH "DESCRIPTION"
+This runs a package's "test" script, if one was provided.
+.
+.P
+If no version is specified, then it tests the "active" version.
View
@@ -1,6 +1,6 @@
{ "name" : "npm"
, "description" : "A package manager for node"
-, "version" : "0.1.7"
+, "version" : "0.1.8"
, "author" : "Isaac Z. Schlueter <i@izs.me>"
, "contributors" : [ "Mikeal Rogers <mikeal.rogers@gmail.com>" ]
, "repository" :

0 comments on commit 33727a1

Please sign in to comment.