Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Add note about pre- & post- commands be invoked for custom scripts as…
Browse files Browse the repository at this point in the history
… well
  • Loading branch information
sudodoki authored and othiym23 committed Jul 20, 2014
1 parent 41ecebe commit f9f58dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/misc/npm-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f9f58dd

Please sign in to comment.