Last active
December 15, 2015 09:49
-
-
Save tylergannon/5240802 to your computer and use it in GitHub Desktop.
Starting template for a rails app to be used for HTML app development.
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
# Write our own Gemfile. | |
file 'Gemfile', <<-CODE | |
source 'https://rubygems.org' | |
gem 'rails', '4.0.0.beta1' | |
group :assets do | |
gem 'sass-rails', '~> 4.0.0.beta1' | |
gem 'coffee-rails', '~> 4.0.0.beta1' | |
gem 'uglifier', '>= 1.0.3' | |
end | |
gem 'actionpack-page_caching' | |
gem 'jquery-rails' | |
gem 'jasminerice', github: 'bradphelan/jasminerice' | |
CODE | |
# Remove unused files. | |
run "rm -rf public/* app/models app/helpers app/mailers app/controllers/concerns db" | |
run 'bundle install' | |
generate 'jasminerice:install' | |
# This is needed for our page caching to work. | |
environment 'ActionController::Base.page_cache_directory = Rails.root.join("public")' | |
file 'spec/javascripts/spec.js.coffee', <<-CODE | |
# This pulls in all your specs from the javascripts directory into Jasmine: | |
# | |
# spec/javascripts/*_spec.js.coffee | |
# spec/javascripts/*_spec.js | |
# spec/javascripts/*_spec.js.erb | |
# | |
#= require_tree ../../app/assets/javascripts | |
#= require_tree ./ | |
CODE | |
git :init | |
git add: '.' | |
git commit: "-m 'Initial commit'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment