Skip to content

Instantly share code, notes, and snippets.

@patricksimpson
Created February 6, 2014 02:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patricksimpson/8837165 to your computer and use it in GitHub Desktop.
Save patricksimpson/8837165 to your computer and use it in GitHub Desktop.
Some helper functions for npm modules, grunt, grunt contrib.
# npm install and save dev
function ni() {
npm install --save-dev "$@"
}
# npm install grunt package, and save dev.
function gi() {
npm install --save-dev grunt-"$@"
}
# npm install grunt contrib package, and save dev.
function gci() {
npm install --save-dev grunt-contrib-"$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment