Last active
August 29, 2015 14:02
-
-
Save uguisu-an/3693b5c23c4d7561e8a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| git :init | |
| git :add => "--all" | |
| git :commit => "-qm 'Initial commit'" | |
| comment_lines "Gemfile", /gem 'spring'/ | |
| gem_group :development do | |
| gem 'spring' | |
| gem 'spring-commands-rspec' | |
| gem 'quiet_assets' | |
| gem 'awesome_print' | |
| gem 'erb2haml' | |
| end | |
| gem_group :development, :test do | |
| gem 'rspec-rails' | |
| gem 'factory_girl_rails' | |
| gem 'ffaker' | |
| gem 'pry-rails' | |
| gem 'pry-byebug' | |
| end | |
| gem_group :test do | |
| gem 'shoulda-matchers' | |
| end | |
| gem 'haml-rails' | |
| gem 'bootstrap-sass' | |
| run_bundle | |
| run "bundle exec spring binstub --all" | |
| file "config/initializers/generators.rb", <<-CODE | |
| Rails.application.config.generators do |g| | |
| g.helper false | |
| g.assets false | |
| g.view_specs false | |
| g.controller_specs false | |
| end | |
| CODE | |
| file "app/assets/stylesheets/framework_and_overrides.css.scss", <<-CODE | |
| @import 'bootstrap'; | |
| CODE | |
| insert_into_file \ | |
| "app/assets/javascripts/application.js", | |
| "//= require bootstrap\n", | |
| before: "//= require_tree ." | |
| insert_into_file \ | |
| "app/assets/stylesheets/application.css", | |
| " *= require framework_and_overrides\n", | |
| before: " *= require_tree ." | |
| remove_dir "test" | |
| generate "rspec:install" | |
| gsub_file ".rspec", /--warnings\n/, "" | |
| gsub_file ".rspec", /--require spec_helper/, "--require rails_helper" | |
| insert_into_file \ | |
| "spec/rails_helper.rb", | |
| "\n config.include FactoryGirl::Syntax::Methods\n", | |
| after: "RSpec.configure do |config|" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment