Sha256: d8b57d340fc3104daabe3f3341ef86d33f6b057ae78cb793ae235b29d3e139e6
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
# encoding: utf-8 require "bunch/version" require "bunch/cli" require "bunch/combiner" require "bunch/compiler" require "bunch/content_hash" require "bunch/css_minifier" require "bunch/file" require "bunch/file_cache" require "bunch/file_tree" require "bunch/ignorer" require "bunch/js_minifier" require "bunch/middleware" require "bunch/server" require "bunch/simple_cache" require "bunch/pipeline" require "bunch/tree_merge" Dir.glob(File.expand_path("../bunch/compilers/*.rb", __FILE__)) do |compiler| require compiler end module Bunch def self.load_default_config_if_possible if ::File.exist?("config/bunch.rb") load "config/bunch.rb" end end def self.load_config_files(config_files) config_files.each do |config_file| load config_file end end Pipeline.define :development do |config| [Ignorer, SimpleCache(Compiler), Combiner] end Pipeline.define :production do |config| [Ignorer, SimpleCache(Compiler), Combiner, FileCache(JsMinifier, config[:root]), FileCache(CssMinifier, config[:root])] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bunch-1.0.0pre3 | lib/bunch.rb |
bunch-1.0.0pre2 | lib/bunch.rb |
bunch-1.0.0pre1 | lib/bunch.rb |