Add npm watch alias
This commit is contained in:
parent
82d3e1376d
commit
0a66162c51
1 changed files with 11 additions and 0 deletions
|
@ -14,6 +14,17 @@ nb() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nw() {
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
command npm run watch
|
||||||
|
else
|
||||||
|
for arg in "$@"
|
||||||
|
do
|
||||||
|
command npm run watch-${arg}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
nr() {
|
nr() {
|
||||||
for arg in "$@"
|
for arg in "$@"
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in a new issue