'register files with observer'

def register(self, observer):

    dirnames = set()
    for filename in sh(coffeescript_files(), capture=True).splitlines():
        dirnames.add(path(filename).dirname())
    for dirname in dirnames:
        observer.schedule(self, dirname)
