Skip to content

Instantly share code, notes, and snippets.

@marshyski
Created June 7, 2015 04:32
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 marshyski/799631fbea89e5acb2e4 to your computer and use it in GitHub Desktop.
Save marshyski/799631fbea89e5acb2e4 to your computer and use it in GitHub Desktop.
Get started with Google's Web Starter Kit on Mac OS X & Homebrew
#!/bin/bash
# ./webstarterkit.sh project_name
# Need Homebrew installed
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if [[ $1 == "" ]]; then
echo "Specify project name: $0 project_name" && echo
exit 1
fi
if [[ -d $1 ]]; then
echo "$1 project/folder already exists" && echo
exit 1
fi
if [[ `which brew` = "" ]]; then
echo "Homebrew is not installed"
echo 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' && echo
exit 1
fi
brew update
brew install node npm
brew upgrade node npm
npm install -g gulp
git clone https://github.com/google/web-starter-kit.git $1
cd web-starter-kit/
npm install
gulp serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment