mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 18:00:10 +00:00
36 lines
786 B
Groff
36 lines
786 B
Groff
.TH "NPM\-RUN\-SCRIPT" "1" "September 2014" "" ""
|
|
.SH "NAME"
|
|
\fBnpm-run-script\fR \- Run arbitrary package scripts
|
|
.SH SYNOPSIS
|
|
.P
|
|
.RS 2
|
|
.EX
|
|
npm run\-script [command] [\-\- <args>]
|
|
npm run [command] [\-\- <args>]
|
|
.EE
|
|
.RE
|
|
.SH DESCRIPTION
|
|
.P
|
|
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
|
|
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\.
|
|
.P
|
|
It is used by the test, start, restart, and stop commands, but can be
|
|
called directly, as well\.
|
|
.SH SEE ALSO
|
|
.RS 0
|
|
.IP \(bu 2
|
|
npm help 7 scripts
|
|
.IP \(bu 2
|
|
npm help test
|
|
.IP \(bu 2
|
|
npm help start
|
|
.IP \(bu 2
|
|
npm help restart
|
|
.IP \(bu 2
|
|
npm help stop
|
|
|
|
.RE
|
|
|