UNPKG

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