Sha256: 84a85e587d534c07e56cf0acd0c1232cdd1fec05a4fb28e8cc37e43505db2f20

Contents?: true

Size: 776 Bytes

Versions: 8

Compression:

Stored size: 776 Bytes

Contents

require 'forwardable'
require 'fileutils'
require 'pathname'

module Hippo

    module Command

        class Webpack < Thor::Group
            include Thor::Actions

            attr_reader :webpack

            attr_accessor :config

            attr_reader :wpd_config

            class_option :compile, :type => :boolean, default: false

            def set_production_env
                ext = Command.load_current_extension
                Hippo.config.environment = :production if options[:compile]
            end

            def launch
                @webpack = Hippo::Webpack.new
            end

            def startup
                process = webpack.process
                process.start
                process.wait
            end

        end
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 lib/hippo/command/webpack.rb
hippo-fw-0.9.8 lib/hippo/command/webpack.rb
hippo-fw-0.9.7 lib/hippo/command/webpack.rb
hippo-fw-0.9.6 lib/hippo/command/webpack.rb
hippo-fw-0.9.5 lib/hippo/command/webpack.rb
hippo-fw-0.9.4 lib/hippo/command/webpack.rb
hippo-fw-0.9.3 lib/hippo/command/webpack.rb
hippo-fw-0.9.2 lib/hippo/command/webpack.rb