-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaml_materialize_template.rb
62 lines (51 loc) · 1.38 KB
/
haml_materialize_template.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# GEMFILE
########################################
run 'rm Gemfile'
file 'Gemfile', <<-RUBY
source 'https://rubygems.org'
ruby '#{RUBY_VERSION}'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '~> 5.1.5'
gem 'sqlite3'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'haml-rails'
gem 'materialize-sass'
group :development, :test do
gem 'capybara', '~> 2.13'
gem 'faker'
gem 'pry-byebug'
gem 'selenium-webdriver'
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
RUBY
# Assets
########################################
run 'rm app/assets/javascripts/application.js'
file 'app/assets/javascripts/application.js', <<-JS
//= require rails-ujs
//= require_tree .
JS
run 'rm app/assets/stylesheets/application.css'
file 'app/assets/javascripts/application.css.sass', <<-SASS
// External libraries
@import "materialize-sass"
@import "font-awesome-sprockets"
@import "font-awesome"
// CSS partials
@import "layouts/index";
SASS
run 'rake haml:erb2haml'
run 'bundle'