Created
June 7, 2015 04:32
-
-
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
This file contains 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/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