Sha256: 4c9f6fea7053f2bf453ad1c18447e473c3db8ecd8779be99a37019a94a48f870

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

# frozen_string_literal: true

module Schienenzeppelin
  module AddOns
    class Views < AddOn
      depends_on :tailwind

      def apply
        say 'Setting up custom landing page'
        directory 'app/views/layouts', 'app/views/layouts', force: true
        directory 'app/views/shared', 'app/views/shared'
        directory 'app/views/pages', 'app/views/pages' if uses?(:high_voltage)
        # Make sure we can access any images put into the images folder
        inject_into_file('app/javascript/packs/application.js', "require.context('../images', true)")
        directory 'app/javascript/images', 'app/javascript/images'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schienenzeppelin-0.2 lib/schienenzeppelin/addons/views.rb