Last active
August 29, 2015 14:06
-
-
Save mhayes/3136620b0b59fb693aa9 to your computer and use it in GitHub Desktop.
Setup Foundation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 [email protected]:zurb/foundation.git | |
git clone --depth 1 [email protected]:zurb/foundation5-marketing.git | |
git clone --depth 1 [email protected]:zurb/foundation-rails.git | |
git clone --depth 1 [email protected]: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