diff options
Diffstat (limited to 'deps/npm/html/doc/misc/npm-scripts.html')
-rw-r--r-- | deps/npm/html/doc/misc/npm-scripts.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/html/doc/misc/npm-scripts.html b/deps/npm/html/doc/misc/npm-scripts.html index 0c2c697a5..8b65e871c 100644 --- a/deps/npm/html/doc/misc/npm-scripts.html +++ b/deps/npm/html/doc/misc/npm-scripts.html @@ -41,8 +41,9 @@ Run by the <code>npm start</code> command.</li> Run by the <code>npm restart</code> command. Note: <code>npm restart</code> will run the stop and start scripts if no <code>restart</code> script is provided.</li> </ul> -<p>Additionally, arbitrary scripts can be run by doing -<code>npm run-script <pkg> <stage></code>.</p> +<p>Additionally, arbitrary scripts can be executed by running `npm run-script</p> +<p><pkg> <stage><code>. *Pre* and *post* commands with matching names will be run for +those as well (e.g.</code>premyscript<code>,</code>myscript<code>,</code>postmyscript`).</p> <h2 id="note-install-scripts-are-an-antipattern">NOTE: INSTALL SCRIPTS ARE AN ANTIPATTERN</h2> <p><strong>tl;dr</strong> Don't use <code>install</code>. Use a <code>.gyp</code> file for compilation, and <code>prepublish</code> for anything else.</p> @@ -218,5 +219,5 @@ the user will sudo the npm command in question.</li> <tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6> </td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)"> </td></tr> <tr><td colspan=5 style="width:50px;height:10px;background:#fff"> </td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4> </td><td style="width:90px;height:10px;background:#fff" colspan=9> </td></tr> </table> -<p id="footer">npm-scripts — npm@1.4.28</p> +<p id="footer">npm-scripts — npm@2.0.0</p> |