lantiga / ki

lisp + mori, sweet.js
ki-lang.org
MIT License
478 stars 29 forks source link

ki --watch #macros #21

Closed orlin closed 9 years ago

orlin commented 9 years ago

The --watch option does not work for ki macro. And the --included code doesn't get watched at all. I ended up writing a little gulpfile.js, so I'd be able to play with macros. I imagine someone may write a gulp-ki plugin some day... Though this is just a few lines good-enough copy/paste fix that does the job.

lantiga commented 9 years ago

I've fixed the ki command to also watch for changes in macros in the source file as well as included files. Since changing macros is more expensive than compiling, sweet is reinvoked only if macros actually change in their content.