Permalink
Browse files

Add note about pre- & post- commands be invoked for custom scripts as…

… well
  • Loading branch information...
1 parent 41ecebe commit f9f58dd0f5b715d4efa6619f13901916d8f99c47 @sudodoki sudodoki committed with othiym23 Jul 15, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 doc/misc/npm-scripts.md
View
@@ -33,8 +33,9 @@ following scripts:
Run by the `npm restart` command. Note: `npm restart` will run the
stop and start scripts if no `restart` script is provided.
-Additionally, arbitrary scripts can be run by doing
-`npm run-script <pkg> <stage>`.
+Additionally, arbitrary scripts can be executed by running `npm run-script
+<pkg> <stage>`. *Pre* and *post* commands with matching names will be run for
+those as well (e.g. `premyscript`, `myscript`, `postmyscript`).
## NOTE: INSTALL SCRIPTS ARE AN ANTIPATTERN

0 comments on commit f9f58dd

Please sign in to comment.