aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorSindre Sorhus <sindresorhus@gmail.com>2013-05-10 08:30:43 +0200
committerMathias Bynens <mathias@qiwi.be>2013-05-10 08:32:04 +0200
commit5a44681edcac0b137ddaa6523af8d7fa6747550d (patch)
tree16a5fbde224702d508ba73045d246962e996eb57 /.functions
parent982ee2f018c481b5a27dd29ef6f38a9328f2f50f (diff)
downloaddotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.tar.gz
dotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.tar.bz2
dotfiles-5a44681edcac0b137ddaa6523af8d7fa6747550d.zip
.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.
Diffstat (limited to '.functions')
-rw-r--r--.functions7
1 files changed, 7 insertions, 0 deletions
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-{"$*"}
+}