Created
November 22, 2012 16:37
-
-
Save djtal/4132035 to your computer and use it in GitHub Desktop.
simple rails application template
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
# Rails 3 application template | |
# | |
# Inlcude : | |
# * haml form templating | |
# * twitter-bootrap for layout | |
# * underscore.js | |
# | |
# * simple_form | |
# | |
# Files for | |
# * calendae | |
# * select2 | |
# | |
# some custom helper and prepackaged scss file | |
# to easly use all that wonderfull stuff | |
gem_group :assets do | |
gem 'bootstrap-sass' | |
gem 'font-awesome-sass-rails' | |
gem 'bootstrap-will_paginate' | |
end | |
gem 'haml-rails' | |
gem 'jquery-rails' | |
gem 'underscore-rails' | |
gem 'simple_form' | |
gem_group :developement do | |
gem 'hirb' | |
gem 'wirble' | |
gem 'awesome_print' | |
gem 'interactive_editor' | |
# to allow seeing route at /rails/routes | |
gem 'sextant' | |
#{clean log from noisy asset pipeline stuff in dev mode | |
gem 'quiet_assets' | |
end | |
generate("simple_form:install", " --bootstrap") | |
run "rm app/assets/stylesheets/application.css" | |
#get latest kalendae | |
get "https://raw.github.com/ChiperSoft/Kalendae/v0.2/build/kalendae.css", "vendor/assets/stylesheets/kalendae.css" | |
get "https://raw.github.com/ChiperSoft/Kalendae/v0.2/build/kalendae.min.js", "vendor/assets/javascripts/kalendae.js" | |
get "https://raw.github.com/ChiperSoft/Kalendae/v0.2/build/arrows.png", "vendor/assets/images/arrows.png" | |
get "https://raw.github.com/ChiperSoft/Kalendae/v0.2/build/close.png", "vendor/assets/images/close.png" | |
# get latest select2 | |
get "https://raw.github.com/ivaynberg/select2/master/select2.js", "vendor/assets/javascripts/select2.js" | |
get "https://raw.github.com/ivaynberg/select2/master/select2.css", "vendor/assets/stylesheets/select2.css" | |
file 'app/assets/stylesheets/application.css.scss', <<-CODE | |
// Bootstrap variable customizations here | |
@import "bootstrap"; | |
[class^="icon-"], [class*=" icon-"] { | |
background-image: none; | |
} | |
@import 'font-awesome'; | |
@import "kalendae"; | |
@import "select2"; | |
CODE | |
# JS code to inject into application.js | |
application_js = <<-CODE | |
//= require kalendae | |
//= require select2 | |
CODE | |
inject_into_file "app/assets/javascripts/application.js", "\n#{application_js}", :after => "//= require jquery_ujs" | |
run "rm public/index.html" | |
# git :init | |
# git :add => ".", :commit => "-m \"initial version\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment