Application directory cleaning in meteor-kitchen CLI process
Hi Perak,
When changing the JSON source file content with meteor-kitchen UI, (ie: rename an element), the old element is not removed from meteor application directory after a meteor-kitchen build.
It can generate persistent errors with meteor compilation if the old code contains some errors. The code in directory inflates, and never deflates.
It's always possible to delete the directory and regenerate from scratch, but with this option, the database is lost too.
@euqip Absolutely agree with you - this makes troubles to mee too (and I believe also to many other people). For this feature to work, I'll need to refactor kitchen little bit - to "remember" what files it generated in last build, and after next build to compare lists and remove unnecessary files.
BTW, there is --clean comand line argument, see does it helps (to be honest I don't remeber what it cleans - typing from mobile phone, I 'll check it when I reach my computer)
I checked by creating a new directory in the views directory, and running meteor-kitchen with --clean argument set.
like:
meteor-kitchen myapp.json ./myapp --clean
The newly created directory was not cleaned out.