ohmyzsh/plugins/yarn/yarn.plugin.zsh

40 lines
1.0 KiB
Bash
Raw Normal View History

# Add yarn bin directory to $PATH if it exists and not in $PATH already
bindir=$(yarn global bin 2>/dev/null) \
&& [[ -d "$bindir" ]] \
&& (( ! ${path[(Ie)$bindir]} )) \
&& path+=("$bindir")
unset bindir
alias y="yarn"
2017-11-04 18:41:14 +01:00
alias ya="yarn add"
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"
alias yga="yarn global add"
alias ygls="yarn global list"
alias ygrm="yarn global remove"
alias ygu="yarn global upgrade"
2017-11-04 18:41:14 +01:00
alias yh="yarn help"
alias yi="yarn init"
alias yin="yarn install"
2019-12-20 03:35:50 +01:00
alias yln="yarn lint"
alias ylnf="yarn lint --fix"
alias yls="yarn list"
alias yout="yarn outdated"
alias yp="yarn pack"
alias yrm="yarn remove"
alias yrun="yarn run"
alias ys="yarn serve"
alias yst="yarn start"
alias yt="yarn test"
alias ytc="yarn test --coverage"
alias yuc="yarn global upgrade && yarn cache clean"
2017-11-04 18:41:14 +01:00
alias yui="yarn upgrade-interactive"
alias yuil="yarn upgrade-interactive --latest"
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"