Sha256: 6881d9a7845fe30560292fa757c6c1c1b5d5d6ae01d16d47240a11c683b3fa36

Contents?: true

Size: 586 Bytes

Versions: 11

Compression:

Stored size: 586 Bytes

Contents

require 'thor/group'
require 'active_support'
require 'active_support/core_ext'

module Locomotive
  module Wagon
    module Generators
      class Webpack < Thor::Group

        include Thor::Actions
        include Locomotive::Wagon::CLI::ForceColor

        argument :target_path # path to the site

        def copy_source
          directory('webpack', self.target_path, {
            recursive:  true
          })
        end

        def self.source_root
          File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'generators')
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
locomotivecms_wagon-3.2.0.alpha2 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.2.0.alpha1 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.1.1 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.1.0 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.1.0.beta1 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.5 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.4 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.3 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.2 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.0 lib/locomotive/wagon/generators/webpack.rb
locomotivecms_wagon-3.0.0.rc0 lib/locomotive/wagon/generators/webpack.rb