Created
May 7, 2013 17:07
-
-
Save stephensauceda/5534295 to your computer and use it in GitHub Desktop.
Alfred - New Web Project Script
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
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