-
-
Save rsp/b97f05398a03f5740884 to your computer and use it in GitHub Desktop.
Example of pre and post scripts in package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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`" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an example for my comment on Medium
inspired by Why I Left Gulp and Grunt for npm Scripts by @coryhouse
See also: https://gist.github.com/rsp/ae6e6eb0885ff701b853