Skip to content

Instantly share code, notes, and snippets.

@stephensauceda
Created May 7, 2013 17:07
Show Gist options
  • Save stephensauceda/5534295 to your computer and use it in GitHub Desktop.
Save stephensauceda/5534295 to your computer and use it in GitHub Desktop.
Alfred - New Web Project Script
cd ~/Sites
#-----
# Go get my boilerplate from Github
#-----
git clone https://github.com/stephensauceda/html-base.git {query}
cd {query}
#-----
# Get HTML5 Boilerplate .htaccess file
#-----
git clone https://github.com/h5bp/server-configs.git
cp server-configs/apache/.htaccess .htaccess
rm -rf server-configs
#-----
# Download dependencies and clean up directories
#-----
git clone https://github.com/scottjehl/Respond.git tmp/respond
mv tmp/respond/respond.src.js js/respond.js
git clone https://github.com/components/normalize.css.git tmp/normalize
mv tmp/normalize/normalize.css tmp/normalize/normalize.scss
mv tmp/normalize/normalize.scss sass
git clone -b 1.9 https://github.com/components/jquery.git tmp/jquery
mv tmp/jquery/jquery.js js
rm -rf tmp
#-----
# Intialize repo, first commit
#-----
git init
echo ".DS_Store
.sass-cache" > .gitignore
git add .
git commit -m "first commit"
#-----
# Open in development environment
#-----
subl .
/Applications/Codekit.app/Contents/MacOS/CodeKit .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment