I use elm-live to serve my Elm, app in development.
I run it like this:
elm-live src/Main.elm -d site -- --output=site/index.html
This works fine - until I create (via my editor Emacs) arbitrary backup file to some of the (code-wise uninteresting) Markdown files like a TODO.md I have in the project root. Here is what happens:
- I edit the TODO.md, Emacs creates a backup file .#TODO.md
- elm-live seems to watch the project root (Why? The source files are in src!) and finds the in-progress file .#TODO.md
- elm-live chokes on that file with:
[Error: ENOENT: no such file or directory, stat '/my/project/dir/.#TODO.md'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/my/project/dir/.#TODO.md'
}
So my question is: How can I avoid this? How can i exclude the root from being watched?
Thanks for any pointers!