2016-09-12 15:52:11 +01:00
|
|
|
# npm aliases
|
|
|
|
alias ni="npm install"
|
|
|
|
alias ns="npm start"
|
|
|
|
alias nt="npm test"
|
|
|
|
|
|
|
|
nb() {
|
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
command npm run build
|
|
|
|
else
|
|
|
|
for arg in "$@"
|
|
|
|
do
|
|
|
|
command npm run build-${arg}
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-11-19 23:06:01 +00:00
|
|
|
nw() {
|
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
command npm run watch
|
|
|
|
else
|
|
|
|
for arg in "$@"
|
|
|
|
do
|
|
|
|
command npm run watch-${arg}
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-09-12 15:52:11 +01:00
|
|
|
nr() {
|
|
|
|
for arg in "$@"
|
|
|
|
do
|
|
|
|
command npm run $arg
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
alias nrc="npm run coverage"
|
|
|
|
alias nrm="npm run mocha"
|
|
|
|
alias nvmu="nvm use"
|
2018-10-03 18:03:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
nvm-init() {
|
2018-10-06 14:04:45 +01:00
|
|
|
source "/usr/share/nvm/init-nvm.sh"
|
2018-10-03 18:03:25 +01:00
|
|
|
}
|