-
Notifications
You must be signed in to change notification settings - Fork 34
/
fullsetup
executable file
·33 lines (24 loc) · 697 Bytes
/
fullsetup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/zsh
if [ ! -x "$(command -v brew)" ]; then
echo "Brew is required for setting up the local development machine."
echo "Please install it from https://brew.sh"
return 1
fi
if [ ! -x "$(command -v asdf)" ]; then
echo "asdf is not installed. Installing..."
brew install asdf
echo ". /opt/homebrew/opt/asdf/libexec/asdf.sh" >> ~/.zshrc
source ~/.zshrc
fi
# Install ruby from .tool-versions
asdf plugin add ruby
asdf plugin update ruby
asdf plugin add nodejs
asdf plugin update nodejs
asdf install
# Install basic dependencies
bundle install
npm install --registry=https://registry.npmjs.org/
# navigate to Example app
cd Example
bundle exec pod install