Sha256: 1e5b607b80b73a9b0292266d69d389edc32cf0f3dfe3698e6858175c40722666

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 KB

Contents

# Sculptor Glyptotheque template
class Middleman::Templates::Glyptotheque < Middleman::Templates::Base
  class_option :css_dir, default: 'assets/styles'
  class_option :js_dir, default: 'assets/js'
  class_option :images_dir, default: 'assets/img'

  # Template files are relative to this file
  # @return [String]
  def self.source_root
    File.dirname(__FILE__)
  end

  def self.gemfile_template
    'glyptotheque/Gemfile.tt'
  end

  def generate_gitignore!
  end

  # Output the files
  # @return [void]
  def build_scaffold!
    template 'glyptotheque/config.tt', File.join(location, 'config.rb')
    copy_file 'glyptotheque/.bowerrc', File.join(location, '.bowerrc')
    copy_file 'glyptotheque/.gitignore', File.join(location, '.gitignore')
    copy_file 'glyptotheque/.editorconfig', File.join(location, '.editorconfig')
    copy_file 'glyptotheque/bower.json', File.join(location, 'bower.json')
    directory 'glyptotheque/source', File.join(location, 'source')
    directory 'glyptotheque/data', File.join(location, 'data')
  end

  def generate_bower!
    run("cd #{location}; bower install")
  end
end

# Register the template
Middleman::Templates.register(:glyptotheque, Middleman::Templates::Glyptotheque)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sculptor-0.0.11.1 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.11 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.10 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.9.3 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.9.2 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.9.1 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.9 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.8 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.7 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.6 lib/sculptor/templates/glyptotheque.rb
sculptor-0.0.5 lib/sculptor/templates/glyptotheque.rb