perak / kitchen-site

Meteor Kitchen site source code
MIT License
282 stars 38 forks source link

Application directory cleaning in meteor-kitchen CLI process #178

Open euqip opened 8 years ago

euqip commented 8 years ago

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.

perak commented 8 years ago

@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.

perak commented 8 years ago

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)

euqip commented 8 years ago

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.