Sha256: 55adec49d9de2c3f727cf34d52bebe21ee665b167335a67bf9744ea1d9467bfd

Contents?: true

Size: 1.4 KB

Versions: 16

Compression:

Stored size: 1.4 KB

Contents

# Boot Sequence

include KLog::Logging

CONFIG_KEY = :handlebarsjs

log.kv 'working folder', Dir.pwd

KConfig.configure do |config|
  config.handlebars.defaults.add_array_defaults
  config.handlebars.defaults.add_case_defaults
  config.handlebars.defaults.add_comparison_defaults
  config.handlebars.defaults.add_inflection_defaults
end

def k_builder
  @k_builder ||= KBuilder::BaseBuilder.init(KConfig.configuration(CONFIG_KEY))
end

KConfig.configure(CONFIG_KEY) do |config|
  builder_folder    = Dir.pwd
  base_folder       = File.expand_path('../', builder_folder)
  global_template   = File.expand_path('~/dev/kgems/k_templates/templates')

  config.template_folders.add(:global_template    , global_template)
  config.template_folders.add(:template           , File.expand_path('.templates', Dir.pwd))

  config.target_folders.add(:app                  , base_folder)
  config.target_folders.add(:lib                  , :app, 'lib', 'handlebarsjs')
  config.target_folders.add(:spec                 , :app, 'spec', 'handlebarsjs')
  config.target_folders.add(:docs                 , :app, 'docs')
  config.target_folders.add(:builder              , builder_folder)
end

KConfig.configuration(CONFIG_KEY).debug

area = KManager.add_area(CONFIG_KEY)
resource_manager = area.resource_manager
resource_manager
  .fileset
  .glob('*.rb', exclude: ['boot.rb'])
  .glob('generators/**/*.rb')
resource_manager.add_resources

KManager.boot

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
handlebarsjs-0.14.2 .builders/boot.rb
handlebarsjs-0.14.1 .builders/boot.rb
handlebarsjs-0.14.0 .builders/boot.rb
handlebarsjs-0.13.1 .builders/boot.rb
handlebarsjs-0.13.0 .builders/boot.rb
handlebarsjs-0.12.0 .builders/boot.rb
handlebarsjs-0.11.3 .builders/boot.rb
handlebarsjs-0.11.2 .builders/boot.rb
handlebarsjs-0.11.1 .builders/boot.rb
handlebarsjs-0.11.0 .builders/boot.rb
handlebarsjs-0.10.0 .builders/boot.rb
handlebarsjs-0.9.0 .builders/boot.rb
handlebarsjs-0.8.0 .builders/boot.rb
handlebarsjs-0.7.0 .builders/boot.rb
handlebarsjs-0.6.3 .builders/boot.rb
handlebarsjs-0.6.2 .builders/boot.rb