From 0a66162c5147f13095765fd2558b4df484fa5079 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 19 Nov 2016 23:06:01 +0000 Subject: [PATCH] Add npm watch alias --- bash/javascript.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bash/javascript.sh b/bash/javascript.sh index 444b0ae..53c9597 100644 --- a/bash/javascript.sh +++ b/bash/javascript.sh @@ -14,6 +14,17 @@ nb() { fi } +nw() { + if [ $# -eq 0 ]; then + command npm run watch + else + for arg in "$@" + do + command npm run watch-${arg} + done + fi +} + nr() { for arg in "$@" do