Create this folder structure:
.
|-- Gemfile
|-- Guardfile
|-- application.coffee
`-- static/
With this Guardfile:
guard 'coffeescript', input: '', output: 'static' do
watch 'application.coffee'
end
Guard will output Successfully generated static/application.js when application.coffee is changed, but no file will be created.
This is due to the detect_nested_directories method using patterns.product(files) to generate output locations when :shallow is set to false (the default).
Perhaps this error message would be appropriate:
ArgumentError: Ambiguous output directory for application.js. Try setting :shallow to true.