Sha256: c82209318c0520364ee525ba996977f0f3a05d2fce2a9814c6622a3e86cf5e00

Contents?: true

Size: 766 Bytes

Versions: 20

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

module Script
  module Layers
    module Infrastructure
      module Languages
        class AssemblyScriptProjectCreator < ProjectCreator
          MIN_NODE_VERSION = "14.5.0" # kept because task_runner uses this
          NPM_SET_REGISTRY_COMMAND = "npm --userconfig ./.npmrc config set @shopify:registry https://registry.npmjs.com"
          NPM_SET_ENGINE_STRICT_COMMAND = "npm --userconfig ./.npmrc config set engine-strict true"

          def self.config_file
            "package.json"
          end

          def setup_dependencies
            super
            command_runner.call(NPM_SET_REGISTRY_COMMAND)
            command_runner.call(NPM_SET_ENGINE_STRICT_COMMAND)
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
shopify-cli-2.11.2 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.11.1 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.11.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.10.2 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.10.1 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.10.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.9.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.8.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.7.4 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.7.3 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.7.2 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.7.1 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.7.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.6 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.5 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.4 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.3 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.2 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.1 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb
shopify-cli-2.6.0 lib/project_types/script/layers/infrastructure/languages/assemblyscript_project_creator.rb