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