1 |
|
2 |
|
3 | # install yarn globally
|
4 | if type yarn >/dev/null 2>&1; then
|
5 | echo 'Yarn Exits!'
|
6 | else
|
7 | echo 'Yarn not Exists!'
|
8 | echo 'install yarn by npm'
|
9 | npm install -g yarn
|
10 | fi
|
11 |
|
12 | # install dependencies
|
13 | yarn install
|
14 |
|
15 | # link githooks
|
16 | cp tools/git-hooks/pre-push .git/hooks/pre-push
|