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
|
# File 'lib/middleman-ganbaruzoi/template.rb', line 27
def build_scaffold
template 'shared/Gemfile', File.join(location, 'Gemfile')
template 'shared/config.rb', File.join(location, 'config.rb')
copy_file 'source/index.html.slim', File.join(location, 'source/index.html.slim')
copy_file 'source/layouts/layout.slim', File.join(location, 'source/layouts/layout.slim')
copy_file 'source/partial/_header.slim', File.join(location, 'source/partial/_header.slim')
copy_file 'source/partial/_footer.slim', File.join(location, 'source/partial/_footer.slim')
copy_file 'source/partial/_script.slim', File.join(location, 'source/partial/_script.slim')
empty_directory File.join(location, 'source', options[:css_dir])
copy_file 'source/assets/stylesheets/style.sass', File.join(location, 'source', options[:css_dir], 'style.sass')
copy_file 'source/assets/stylesheets/_mixin.sass', File.join(location, 'source', options[:css_dir], '_mixin.sass')
empty_directory File.join(location, 'source', options[:css_options_dir])
copy_file 'source/assets/stylesheets/options/_normalize.scss', File.join(location, 'source', options[:css_options_dir], '_normalize.scss')
empty_directory File.join(location, 'source', options[:css_variables_dir])
copy_file 'source/assets/stylesheets/variables/_color.scss', File.join(location, 'source', options[:css_variables_dir], '_color.scss')
copy_file 'source/assets/stylesheets/variables/_common.sass', File.join(location, 'source', options[:css_variables_dir], '_common.sass')
empty_directory File.join(location, 'source', options[:js_dir])
copy_file 'source/assets/javascripts/all.js.coffee', File.join(location, 'source', options[:js_dir], 'all.js.coffee')
empty_directory File.join(location, 'source', options[:images_dir])
end
|