Created
February 19, 2009 17:20
-
-
Save yitzhakbg/67010 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/*" | |
rake "rails:freeze:edge" | |
# run "touch app/controllers/application.rb" | |
git :init | |
run "echo 'TODO add readme content' > README" | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run "cp config/database.yml config/example_database.yml" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
file ".gitignore", <<-END | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
END | |
# Install all gems | |
gem 'braid', :source => 'http://gems.github.com' | |
gem 'haml', :source => 'http://gems.github.com' | |
gem 'chriseppstein-compass', :lib => 'compass', :source => 'http://gems.github.com' | |
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com' | |
# gem 'giraffesoft-resource_controller', :lib => 'resource_controller', :source => 'http://gems.github.com' | |
gem 'sqlite3-ruby', :lib => 'sqlite3' | |
rake('gems:install', :sudo => true) | |
# Initial commit is required prior to performing Braid operations | |
git :add => '.' | |
git :commit => "-a -m 'Initial commit'" | |
# Install Braid vendored plugins | |
run "braid add git://github.com/dchelimsky/rspec.git -p" | |
run "braid add git://github.com/dchelimsky/rspec-rails.git -p" | |
run "braid add git://github.com/ryanb/nifty-generators.git -p" | |
# run "braid add git://github.com/hcatlin/make_resourceful.git -p" | |
run "braid add git://github.com/giraffesoft/resource_controller.git -p" | |
run "braid add git://github.com/rsl/skinny_spec.git -p" | |
generate :rspec | |
generate :nifty_layout => " --haml" | |
run "haml --rails ." | |
run "compass --rails" | |
git :commit => "-a -m 'Commit after Braiding plugins'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment