Sha256: 69633745b9c171751860b2c5c246d65f6bd155d96f7fea7fa680a2ba7ee70bf7

Contents?: true

Size: 546 Bytes

Versions: 64

Compression:

Stored size: 546 Bytes

Contents

# 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..."

        build_output = `cd client && #{ReactOnRails.configuration.npm_build_test_command}`

        raise "Error in building assets!\n#{build_output}" unless Utils.last_process_completed_successfully?

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
react_on_rails-8.0.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.0 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.0.beta.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.0.beta.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-8.0.0.beta.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.1.0.beta.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.0.4 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.1.0.beta.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.0.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.1.0.beta.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.0.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.0.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-7.0.0 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.10.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.10.0 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.9.3 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.9.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.9.1 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.9.0 lib/react_on_rails/test_helper/webpack_assets_compiler.rb
react_on_rails-6.8.2 lib/react_on_rails/test_helper/webpack_assets_compiler.rb