Skip to content

Commit

Permalink
.functions: Add gi
Browse files Browse the repository at this point in the history
This is an easy way to install Grunt plugins and add them as `devDependencies` to `package.json`.
Example:

    gi contrib-watch contrib-uglify zopfli

Closes #191.
  • Loading branch information
sindresorhus authored and mathiasbynens committed May 10, 2013
1 parent 216e79a commit 137139d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,10 @@ function unquarantine() {
xattr -r -d "$attribute" "$@"
done
}

# Install Grunt plugins and add them as `devDependencies` to `package.json`
# Usage: `gi contrib-watch contrib-uglify zopfli`
function gi() {
local IFS=,
eval npm install --save-dev grunt-{"$*"}
}

0 comments on commit 137139d

Please sign in to comment.