Skip to content

Instantly share code, notes, and snippets.

@mhayes mhayes/setup.sh
Last active Aug 29, 2015

Embed
What would you like to do?
Setup Foundation
#! /bin/sh
mkdir -p ~/Sites/zurb-foundation
cd ~/Sites/zurb-foundation
npm install bower grunt-cli -g
rc=$?
if [[ $rc != 0 ]] ; then
sudo npm install bower grunt-cli -g
fi
echo "[SUCCESS] Installed bower and grunt";
echo "[INFO] Setting up repositories locally"
git clone --depth 1 git@github.com:zurb/foundation.git
git clone --depth 1 git@github.com:zurb/foundation5-marketing.git
git clone --depth 1 git@github.com:zurb/foundation-rails.git
git clone --depth 1 git@github.com:zurb/foundation-customizer.git
echo "[INFO] Setting up foundation 5 marketing site"
cd ~/Sites/zurb-foundation/foundation5-marketing
npm install
bower install
echo "[INFO] Setting up foundation source"
cd ~/Sites/zurb-foundation/foundation
npm install
bower install
echo "[INFO] Setting up foundation 5 customizer"
cd ~/Sites/zurb-foundation/foundation-customizer
bundle install --without production
rc=$?
if [[ $rc != 0 ]] ; then
rbenv install `cat .ruby-version`
gem install bundler
rbenv rehash
bundle install --without production
fi
echo "[INFO] Setting up foundation 5 rails plugin"
cd ~/Sites/zurb-foundation/foundation-rails
bundle install --without production
rc=$?
if [[ $rc != 0 ]] ; then
rbenv install `cat .ruby-version`
gem install bundler
rbenv rehash
bundle install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.