2021-12-29 15:19:59 +01:00
|
|
|
# Skip yarn call if default global bin dir exists
|
|
|
|
[[ -d "$HOME/.yarn/bin" ]] && bindir="$HOME/.yarn/bin" || bindir="$(yarn global bin 2>/dev/null)"
|
|
|
|
|
|
|
|
# Add yarn bin directory to $PATH if it exists and not already in $PATH
|
|
|
|
[[ $? -eq 0 ]] \
|
2020-10-31 16:01:18 +01:00
|
|
|
&& [[ -d "$bindir" ]] \
|
|
|
|
&& (( ! ${path[(Ie)$bindir]} )) \
|
|
|
|
&& path+=("$bindir")
|
|
|
|
unset bindir
|
|
|
|
|
2018-07-11 21:21:01 +02:00
|
|
|
alias y="yarn"
|
2017-11-04 18:41:14 +01:00
|
|
|
alias ya="yarn add"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yad="yarn add --dev"
|
|
|
|
alias yap="yarn add --peer"
|
|
|
|
alias yb="yarn build"
|
2017-11-04 18:41:14 +01:00
|
|
|
alias ycc="yarn cache clean"
|
2019-10-01 22:24:00 +02:00
|
|
|
alias yd="yarn dev"
|
2018-10-28 19:27:34 +01:00
|
|
|
alias yga="yarn global add"
|
|
|
|
alias ygls="yarn global list"
|
|
|
|
alias ygrm="yarn global remove"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias ygu="yarn global upgrade"
|
2017-11-04 18:41:14 +01:00
|
|
|
alias yh="yarn help"
|
2018-10-28 19:27:34 +01:00
|
|
|
alias yi="yarn init"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yin="yarn install"
|
2019-12-20 03:35:50 +01:00
|
|
|
alias yln="yarn lint"
|
2021-10-04 13:07:55 +02:00
|
|
|
alias ylnf="yarn lint --fix"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yls="yarn list"
|
2018-06-17 00:03:14 +02:00
|
|
|
alias yout="yarn outdated"
|
2018-10-28 19:27:34 +01:00
|
|
|
alias yp="yarn pack"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yrm="yarn remove"
|
|
|
|
alias yrun="yarn run"
|
2018-10-28 19:27:34 +01:00
|
|
|
alias ys="yarn serve"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yst="yarn start"
|
|
|
|
alias yt="yarn test"
|
2019-10-08 20:38:25 +02:00
|
|
|
alias ytc="yarn test --coverage"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yuc="yarn global upgrade && yarn cache clean"
|
2017-11-04 18:41:14 +01:00
|
|
|
alias yui="yarn upgrade-interactive"
|
2020-07-09 15:29:26 +02:00
|
|
|
alias yuil="yarn upgrade-interactive --latest"
|
2018-07-11 21:21:01 +02:00
|
|
|
alias yup="yarn upgrade"
|
2019-10-09 15:17:05 +02:00
|
|
|
alias yv="yarn version"
|
2019-01-02 21:12:13 +01:00
|
|
|
alias yw="yarn workspace"
|
|
|
|
alias yws="yarn workspaces"
|