Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
feat(osxsetup): add yarn globals and atom packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbolel committed Nov 25, 2017
1 parent 0de9e54 commit 8818ac1
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions osx-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
# xcode-select --install

brew_get_head() {
brew update && brew upgrade
brew cleanup && brew cask cleanup
brew update
brew upgrade
brew prune
brew cleanup
brew cask cleanup
}

brew_install() {
Expand All @@ -14,8 +17,8 @@ brew_install() {

# Tap sources
local taps=(
'homebrew/services'
'homebrew/php'
'homebrew/services'
'caskroom/cask'
'caskroom/versions'
); for i in ${taps[@]}; do brew tap ${i}; done
Expand Down Expand Up @@ -71,43 +74,62 @@ brew_install() {
'tree'
'vim'
'watch'
'watchman'
'wget'
'yarn'
); for i in ${kegs[@]}; do brew install ${i}; done

# Install Casks
local casks=(
'adobe-acrobat-reader'
'atom'
'bettertouchtool'
'ccleaner'
'cloudapp'
'dropbox'
'gimp'
'gitter'
'google-chrome'
'google-drive'
'imageoptim'
'iterm2-beta'
'postman'
'sketch'
'skype'
'skype-for-business'
'slack'
'spectacle'
'spotify'
'steam'
'sublime-text'
'twitch'
'unity'
'visual-studio-code'
); for i in ${casks[@]}; do brew cask install ${i}; done
}

install_node(){
nvm install 8.2.1
nvm alias default 8.2.1
nvm install 9.2.0
nvm alias default 9.2.0
nvm use default
npm i -g npm
local npms=(
'create-react-app'
'editorconfig'
'eslint'
'gulp-cli'
'jscodeshift'
'npm-check'
'npm-check-updates'
'nodemon'
'serve'
'standard'
); for i in ${npms[@]}; do yarn add global ${i}; done
}

setup_atom(){
local apms=(
'atom-beautify'
'calc'
'language-babel'
'nuclide'
'set-syntax'
'sort-lines'
'tinytimer'
); for i in ${apms[@]}; do apm install ${i}; done
}

setup_git(){
Expand Down Expand Up @@ -146,7 +168,8 @@ symlink_jsc() {
#############################
brew_install
brew_get_head
setup_atom
setup_git
install_node
symlink_jsc
setup_git
speedup_osx

0 comments on commit 8818ac1

Please sign in to comment.