2012-08-06 13:07:31 -07:00
|
|
|
.\" Generated with Ronnjs 0.3.8
|
2011-11-26 09:21:03 -08:00
|
|
|
.\" http://github.com/kapouer/ronnjs/
|
|
|
|
.
|
2014-09-16 15:38:50 -07:00
|
|
|
.TH "NPM\-RUN\-SCRIPT" "1" "September 2014" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.
|
|
|
|
.SH "NAME"
|
|
|
|
\fBnpm-run-script\fR \-\- Run arbitrary package scripts
|
|
|
|
.
|
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.
|
|
|
|
.nf
|
2014-05-05 18:20:40 -07:00
|
|
|
npm run\-script [<pkg>] [command]
|
2014-06-05 15:18:15 -07:00
|
|
|
npm run [<pkg>] [command]
|
2011-11-26 09:21:03 -08:00
|
|
|
.
|
|
|
|
.fi
|
|
|
|
.
|
|
|
|
.SH "DESCRIPTION"
|
2014-05-01 11:09:00 -07:00
|
|
|
This runs an arbitrary command from a package\'s \fB"scripts"\fR object\.
|
|
|
|
If no package name is provided, it will search for a \fBpackage\.json\fR
|
2014-05-05 18:20:40 -07:00
|
|
|
in the current folder and use its \fB"scripts"\fR object\. If no \fB"command"\fR
|
|
|
|
is provided, it will list the available top level scripts\.
|
2011-11-26 09:21:03 -08:00
|
|
|
.
|
|
|
|
.P
|
|
|
|
It is used by the test, start, restart, and stop commands, but can be
|
|
|
|
called directly, as well\.
|
|
|
|
.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
2014-09-16 15:38:50 -07:00
|
|
|
npm help 7 scripts
|
2011-11-26 09:21:03 -08:00
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
|
|
|
npm help test
|
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
|
|
|
npm help start
|
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
|
|
|
npm help restart
|
|
|
|
.
|
|
|
|
.IP "\(bu" 4
|
|
|
|
npm help stop
|
|
|
|
.
|
|
|
|
.IP "" 0
|
|
|
|
|