Module: Guard::CoffeeScript::Runner

Defined in:
lib/guard/coffeescript/runner.rb

Class Method Summary collapse

Class Method Details

.run(files, watchers, options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/guard/coffeescript/runner.rb', line 8

def run(files, watchers, options = {})
  notify_start(files, options)
  changed_files, errors = compile_files(files, options, watchers)
  notify_result(changed_files, errors, options)

  [changed_files, errors.empty?]

rescue ExecJS::RuntimeError => e
  Formatter.error("ExecJS engine error: " + e.message)
end