Created
May 1, 2009 20:01
-
-
Save bebanjo/105222 to your computer and use it in GitHub Desktop.
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
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm -f public/javascripts/*" | |
# Set up git repository and .gitignore files | |
git :init | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
file '.gitignore', <<-END | |
.DS_Store | |
log | |
tmp | |
config/database.yml | |
db/*.sqlite3 | |
END | |
# gems | |
gem 'haml' | |
rake('gems:install', :sudo => true) | |
run "haml --rails ." | |
# plugins | |
plugin 'jrails', :svn => 'http://ennerchi.googlecode.com/svn/trunk/plugins/jrails' | |
run "cp vendor/plugins/jrails/javascripts/*.js public/javascripts" | |
# Download JQuery 1.3.2 -> ahead of jrails's version | |
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js" | |
# Get Blueprint | |
run "mkdir public/stylesheets/blueprint" | |
run "curl -L http://www.blueprintcss.org/blueprint/screen.css > public/stylesheets/blueprint/screen.css" | |
run "curl -L http://www.blueprintcss.org/blueprint/print.css > public/stylesheets/blueprint/print.css" | |
run "curl -L http://www.blueprintcss.org/blueprint/ie.css > public/stylesheets/blueprint/ie.css" | |
# Create files | |
run "touch public/stylesheets/main.css" | |
file 'app/views/layouts/application.html.haml', | |
%q{!!! XML | |
%html{:xmlns => "http://www.w3.org/1999/xhtml", 'xml:lang' => "en", :lang => "en" } | |
%head | |
%meta{'http-equiv' => "Content-type", :content => "text/html; charset=utf-8"}/ | |
%title Title | |
= stylesheet_link_tag 'blueprint/screen', :media => 'screen, projection' | |
= stylesheet_link_tag 'blueprint/print', :media => 'print' | |
/[if IE] | |
= stylesheet_link_tag 'blueprint/ie', :media => 'screen, projection' | |
= stylesheet_link_tag 'main.css', :media => 'screen, projection' | |
= javascript_include_tag :defaults, :cache => true | |
%body | |
.container | |
= yield | |
} | |
git :add => "." | |
git :commit => "-m 'Rails, HAML, jQuery, jRails, Blueprint'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment