Skip to content

Instantly share code, notes, and snippets.

@rsp
Forked from coryhouse/package.json
Last active January 21, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsp/b97f05398a03f5740884 to your computer and use it in GitHub Desktop.
Save rsp/b97f05398a03f5740884 to your computer and use it in GitHub Desktop.
Example of pre and post scripts in package.json
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"help-list": "echo It lists all json files",
"list": "ls *.json",
"help-time": "echo It prints current time in UTC",
"time": "date -uIs",
"help-numbers": "echo It prints numbers from 1 to 10",
"numbers": "echo `seq 1 10`"
}
}
@rsp
Copy link
Author

rsp commented Jan 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment