S
S
sudo rm -rf /2015-11-20 11:55:03
CoffeeScript
sudo rm -rf /, 2015-11-20 11:55:03

How to change guard-coffeescript result directory?

Guardfile has a block

coffeescript_options = {
  input: 'scripts/coffee',
  output: 'scripts/',
  patterns: [%r{^scripts/(.+\.(?:coffee|coffee\.md|litcoffee))$}]

}

guard 'coffeescript', coffeescript_options do
  coffeescript_options[:patterns].each { |pattern| watch(pattern) }
end

*.coffee is stored in scripts/coffee/
*.js should be stored in scripts/ but ends up in scripts/coffee/
How do I change the output directory?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question