Sha256: 0435c354a7e7727535961933f7e73bd3f8f8f096e489b87d0a8d7df39f9de0e4

Contents?: true

Size: 1021 Bytes

Versions: 23

Compression:

Stored size: 1021 Bytes

Contents

module Spree
  module Frontend
    class CopyStorefrontGenerator < Rails::Generators::Base
      desc 'Copies storefront from spree frontend to your application'

      def self.source_paths
        [
          File.expand_path('../../../../../app', __dir__),
          File.expand_path('../../../../../app/assets/images', __dir__),
          File.expand_path('../../../../../app/assets/stylesheets/spree/frontend', __dir__),
          File.expand_path('../../../../../app/assets/stylesheets/spree/frontend/variables', __dir__)
        ]
      end

      def copy_storefront
        directory 'views', './app/views'
        directory 'noimage', './app/assets/images/noimage'
        directory 'homepage', './app/assets/images/homepage'
        directory 'meganav', './app/assets/images/meganav'
        template 'application.scss', './app/assets/stylesheets/spree/frontend/application.scss'
        template 'variables.scss', './app/assets/stylesheets/spree/frontend/variables/variables.scss'
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
spree_frontend-4.1.15 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.14 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.13.1 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.rc5 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.rc4 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.rc3 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.13 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.rc2 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.12 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.rc1 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.11 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.10 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.2.0.beta lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.9 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.8 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.7 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.6 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.5 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.4 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb
spree_frontend-4.1.3 lib/generators/spree/frontend/copy_storefront/copy_storefront_generator.rb