2011-10-16 15:05:35 +00:00
|
|
|
require 'pathname'
|
|
|
|
|
2011-12-01 15:26:23 +00:00
|
|
|
module Jasmine
|
|
|
|
module Headless
|
2011-12-05 23:49:52 +00:00
|
|
|
|
|
|
|
EXCLUDED_FORMATS = %w{less sass scss erb str}
|
|
|
|
|
2011-12-01 15:26:23 +00:00
|
|
|
autoload :CommandLine, 'jasmine/headless/command_line'
|
|
|
|
|
|
|
|
autoload :CoffeeScriptCache, 'jasmine/headless/coffee_script_cache'
|
|
|
|
autoload :SpecFileAnalyzer, 'jasmine/headless/spec_file_analyzer'
|
|
|
|
autoload :CacheableAction, 'jasmine/headless/cacheable_action'
|
|
|
|
autoload :VERSION, 'jasmine/headless/version'
|
|
|
|
autoload :Runner, 'jasmine/headless/runner'
|
|
|
|
autoload :Options, 'jasmine/headless/options'
|
|
|
|
autoload :Task, 'jasmine/headless/task'
|
|
|
|
|
|
|
|
autoload :FilesList, 'jasmine/headless/files_list'
|
|
|
|
autoload :UniqueAssetList, 'jasmine/headless/unique_asset_list'
|
|
|
|
|
|
|
|
autoload :TemplateWriter, 'jasmine/headless/template_writer'
|
2011-12-05 23:49:52 +00:00
|
|
|
|
|
|
|
autoload :FileChecker, 'jasmine/headless/file_checker'
|
|
|
|
autoload :NilTemplate, 'jasmine/headless/nil_template'
|
2011-12-01 15:26:23 +00:00
|
|
|
|
|
|
|
autoload :Report, 'jasmine/headless/report'
|
|
|
|
autoload :ReportMessage, 'jasmine/headless/report_message'
|
|
|
|
|
|
|
|
class << self
|
|
|
|
def root
|
|
|
|
@root ||= Pathname(File.expand_path('../../..', __FILE__))
|
|
|
|
end
|
2012-01-11 13:44:28 +00:00
|
|
|
|
|
|
|
def warn(message)
|
|
|
|
output.puts message if show_warnings?
|
|
|
|
end
|
|
|
|
|
|
|
|
def show_warnings=(show)
|
|
|
|
@show_warnings = show
|
|
|
|
end
|
|
|
|
|
|
|
|
def show_warnings?
|
|
|
|
@show_warnings = true if @show_warnings.nil?
|
|
|
|
|
|
|
|
@show_warnings
|
|
|
|
end
|
|
|
|
|
|
|
|
def output
|
|
|
|
$stdout
|
|
|
|
end
|
2011-10-10 18:11:13 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'jasmine/headless/errors'
|
2011-11-28 16:47:05 +00:00
|
|
|
|