arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

Watching temporary files #4

Closed lorensr closed 13 years ago

lorensr commented 13 years ago

My text editor creates files of the form [filename]~, and these files are watched by toaster. Could toaster either take an option in toaster.coffee like:

tempfile_regexes = [
  /~$/
  /\.swp$/
  /\.DS_Store$/
  /^#/
]

or just filter those by default?

arboleya commented 13 years ago

This fix will be published in the next patch (current is 0.3.0).

If you wanna use it right now, install from source by:

  1. git clone git://github.com/serpentem/coffee-toaster
  2. cd coffee-toaster; git submodule init; git submodule update
  3. npm link

Instead of adding support for tmp files, I have simply excluded everything else that is not 'filename.coffee', tells me if you find any other problem.

Tks for testing. :)