aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSindre Sorhus <sindresorhus@gmail.com>2014-01-09 18:46:05 +0100
committerMathias Bynens <mathias@qiwi.be>2014-01-09 18:47:11 +0100
commitd8ac2c9544eb491acb5618e5247ec58a7d269504 (patch)
tree568763551b7d35dc51570b8ac5674367d5098006
parent47a67ac3e467e5f8bd812208a8bfd47d6848cced (diff)
downloaddotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.tar.gz
dotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.tar.bz2
dotfiles-d8ac2c9544eb491acb5618e5247ec58a7d269504.zip
.functions: Make `np` remove `node_modules`
This lets you catch cases where you forgot to add a dependency to `package.json`. Closes #321.
-rw-r--r--.functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/.functions b/.functions
index e78f855..94c5d46 100644
--- a/.functions
+++ b/.functions
@@ -296,6 +296,7 @@ function o() {
# defaults to `patch`
function np() {
git pull --rebase && \
+ rm -rf node_modules && \
npm install && \
npm test && \
npm version ${1:=patch} && \