From 5a44681edcac0b137ddaa6523af8d7fa6747550d Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 10 May 2013 08:30:43 +0200 Subject: .functions: Add `gi` 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. --- .functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.functions b/.functions index 2481e8a..ca55c46 100644 --- a/.functions +++ b/.functions @@ -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-{"$*"} +} -- cgit v1.2.3