I have gulp watch running like so:
gulp.task('watch', () => {
watch('styles/**/*.scss', () => {
gulp.start('css');
});
});
But I have a problem. The workflow looks like this:
- I edit and save a file in Coda
- Coda saves by creating a new file in a temporary folder, deleting the original and renaming the temporary file (or something like that)
- The watch task sees the temporary folder and starts trying to run on the file inside it
- The CSS build task fails on that file because it gets moved/deleted
- The temporary folder does not get deleted because this task starts running in it
I have a couple of ways to get the full CSS compiling working fine, but I can't stop the temporary folders hanging around. How do I get rid of these?
Is there a way to make Coda save directly to the file instead of creating these buffer files?