Skip to content

Instantly share code, notes, and snippets.

@mhayes
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhayes/3136620b0b59fb693aa9 to your computer and use it in GitHub Desktop.
Save mhayes/3136620b0b59fb693aa9 to your computer and use it in GitHub Desktop.
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