Sha256: 580ff4ea535cfd3358732e0ebcb89bb2871a7a4d15aeff551bb86112edc00c8f

Contents?: true

Size: 555 Bytes

Versions: 18

Compression:

Stored size: 555 Bytes

Contents

# frozen_string_literal: true

# You can replace this implementation with your own for use by the
# ReactOnRails::TestHelper.ensure_assets_compiled helper
module ReactOnRails
  module TestHelper
    class WebpackAssetsCompiler
      def compile_assets
        puts "\nBuilding Webpack assets..."

        cmd = "cd client && #{ReactOnRails.configuration.npm_build_test_command}"

        ReactOnRails::Utils.invoke_and_exit_if_failed(cmd, "Error in building webpack assets!")

        puts "Completed building Webpack assets."
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
react_on_rails-9.0.0.beta.11 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.10 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.9 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.8 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.7 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.6 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.5 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.4 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-9.0.0.beta.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.6 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.6.rc.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.6.rc.0 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.5 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.4 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb