Skip to content

Instantly share code, notes, and snippets.

@kamilziajka
Created October 11, 2016 08:41
Show Gist options
  • Save kamilziajka/11c412265b43ff0e350ab49ac1bc16b0 to your computer and use it in GitHub Desktop.
Save kamilziajka/11c412265b43ff0e350ab49ac1bc16b0 to your computer and use it in GitHub Desktop.
npm scripts multiple alias args
{
"scripts": {
"build": "node bin/build",
"update": "node bin/update",
"build-update": "buildupdate(){ npm run build -- $@ && npm run update -- $@; }; buildupdate"
}
}
npm run build -- test
npm run update -- test
npm run build-update -- test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment