ymanager/webapp/install.sh @ 2ca79f0a
1 |
#!/bin/bash
|
---|---|
2 |
if ! hash brew 2>/dev/null; then |
3 |
brew install yarn |
4 |
brew install npm
|
5 |
fi
|
6 |
|
7 |
|
8 |
if ! hash choco 2>/dev/null; then |
9 |
choco install yarn |
10 |
choco install npm
|
11 |
fi
|
12 |
|
13 |
if hash yarn 2>/dev/null; then |
14 |
yarn install |
15 |
else
|
16 |
echo 'install yarn manually from https://yarnpkg.com/en/docs/install#windows-stable' |
17 |
fi
|
18 |
|
19 |
if hash npm 2>/dev/null; then |
20 |
npm install -g @angular/cli |
21 |
else
|
22 |
echo 'install https://nodejs.org/en/download/' |
23 |
fi
|