Sha256: 376f621385971b5ad1ba6731bfcbbe2da2e42664199fde967a5ac68a4ef1ad18

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

# Configure barista.
Barista.configure do |c|
  
  # Change the root to use app/scripts
  # c.root = Rails.root.join("app", "scripts")
  
  # Change the output root, causing Barista to compile into public/coffeescripts
  # c.output_root = Rails.root.join("public", "coffeescripts")
  
  # Disable wrapping in a closure:
  # c.no_wrap = true
  # ... or ...
  # c.no_wrap!
  
  # Change the output root for a framework:
  
  # c.change_output_prefix! 'framework-name', 'output-prefix'
  
  # or for all frameworks...
  
  # c.each_framework do |framework|
  #   c.change_output_prefix! framework.name, "vendor/#{framework.name}"
  # end
  
  # or, prefix the path for the app files:
  
  # c.change_output_prefix! :default, 'my-app-name'  
  
  # or, hook into the compilation:
  
  # c.before_compilation   { |path|         puts "Barista: Compiling #{path}" }
  # c.on_compilation       { |path|         puts "Barista: Successfully compiled #{path}" }
  # c.on_compilation_error { |path, output| puts "Barista: Compilation of #{path} failed with:\n#{output}" }
  # c.on_compilation_with_warning { |path, output| puts "Barista: Compilation of #{path} had a warning:\n#{output}" }
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barista-0.5.1 lib/generators/barista_install/templates/initializer.rb
barista-0.5.0 lib/generators/barista_install/templates/initializer.rb