/
setup.local.sh
81 lines (59 loc) · 1.8 KB
/
setup.local.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/sh
# Specific local installs and config
fancy_echo "Secondary local setup ..."
bin=$(dirname -- "$0")
#--- Any dev ---
brew_install_or_upgrade 'git'
brew_install_or_upgrade 'bash-completion'
#--- Web dev ---
brew_install_or_upgrade 'node'
fancy_echo "Node version: $(node -v)"
fancy_echo "NPM version: $(npm -v)"
npm install -g bower
fancy_echo "Bower version: $(bower -v)"
npm install -g gulp
fancy_echo "Gulp version: $(gulp -v)"
npm install -g karma-cli
# Getting version of global karma not as simple as others
npm install -g @angular/cli
fancy_echo "Angular CLI version: $(ng -v)"
npm install -g firebase-tools
fancy_echo "Firebase CLI version: $(firebase --version)"
#--- Android dev ---
# Enable java install as needed; Disabled by default because its so slow
# Cask default is latest JDK
#brew cask install java
java -version
brew_install_or_upgrade gradle
gradle -v
brew cask install virtualbox
brew cask install androidtool
#--- Ionic dev ---
npm install -g cordova
fancy_echo "Cordova CLI version: $(cordova -v)"
npm install -g ionic
fancy_echo "Ionic CLI version: $(ionic -v)"
npm install -g ios-sim
npm install -g ios-deploy
# Need ant until Ionic migrates to Gradle/Android Studio
#brew install ant
#--- Hosting ---
brew_install_or_upgrade 'heroku-toolbelt'
#--- Other ---
# Not using Cask for Google Chrome, due to known and potential issues
brew cask install google-drive
brew cask install dropbox
fancy_echo "Clean up non-current Brew and Cask downloads ..."
brew cleanup --outdated
brew cask cleanup --outdated
# Dotfiles
fancy_echo "Copying dotfiles ..."
for dotfile in ".bash_profile" \
".bash_prompt" \
".aliases" \
".functions" \
".gitconfig" \
".gitignore_global"; do
cp $bin/dotfiles/"${dotfile}" ~/ > /dev/null 2>&1
done
fancy_echo "Secondary local setup complete."