Skip to content

Instantly share code, notes, and snippets.

@erotte
Created April 18, 2017 07:52
Show Gist options
  • Save erotte/540c0daa645b69b9543eb2fe71008765 to your computer and use it in GitHub Desktop.
Save erotte/540c0daa645b69b9543eb2fe71008765 to your computer and use it in GitHub Desktop.
run npm run recursively
alias nr="_nr"
function _nr() {
for arg in $@; do npm run $arg; done;
}
@erotte
Copy link
Author

erotte commented Apr 18, 2017

simple recursion over npm run, less typing for multiple tasks

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