Sha256: 9cfe1f83dde466655585999340c71ecb86f09cdd91cef50b3eb841c065d2db93
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true module SewingKit class Configuration attr_accessor :build_options, :dev_server_sewing_kit_bin, :manifest_name, :manifest_path attr_reader :test_manifest_mode def test_manifest_mode=(mode) valid_modes = [:return_no_assets, :use_precompiled_assets] raise "Unknown mode '#{mode}' (valid modes are: #{valid_modes})" unless valid_modes.include?(mode) @test_manifest_mode = mode end def initialize @build_options = nil @manifest_name = 'sewing-kit-manifest.json' @manifest_path = nil @dev_server_sewing_kit_bin = 'node_modules/.bin/sewing-kit' self.test_manifest_mode = :return_no_assets end end def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sewing_kit-0.94.0 | lib/sewing_kit/configuration.rb |