Sha256: e78cb523ac23528d84592664164804bc3015db8a4eafa32b0d4cd6d3ad4dfd76
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true module Script module Layers module Application class BuildScript class << self def call(ctx:, task_runner:, script:) CLI::UI::Frame.open(ctx.message('script.application.building')) do begin UI::StrictSpinner.spin(ctx.message('script.application.building_script')) do |spinner| Infrastructure::PushPackageRepository .new(ctx: ctx) .create_push_package(script, task_runner.build, task_runner.compiled_type) spinner.update_title(ctx.message('script.application.built')) end rescue StandardError => e CLI::UI::Frame.with_frame_color_override(:red) do ctx.puts("\n{{red:#{e.message}}}") end errors = [ Infrastructure::Errors::InvalidBuildScriptError, Infrastructure::Errors::BuildScriptNotFoundError, Infrastructure::Errors::WebAssemblyBinaryNotFoundError, ] raise Infrastructure::Errors::BuildError unless errors.any? { |err| e.is_a?(err) } raise end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-1.5.0 | lib/project_types/script/layers/application/build_script.rb |