SassDoc / sassdoc

Release the docs!
http://sassdoc.com
MIT License
1.41k stars 56 forks source link

Prevent `dest` from being deleted #506

Open iamnewton opened 7 years ago

iamnewton commented 7 years ago

Running the gulp task as per the instructions on the docs, but wanting to prevent the docs destination folder from being cleaned out every time I run sassdoc

KittyGiraudel commented 7 years ago

Out of curiosity, why?

iamnewton commented 7 years ago

Because I'm having it placed in a docs/ folder for publishing to Github and there are other things in there that are getting blown out

KittyGiraudel commented 7 years ago

I think @mirisuzanne had similar issues. Miri, care to share if you found a solution?

mirisuzanne commented 7 years ago

At this point I just added a script to recreate my CNAME file every time it gets blown away. This is not a reliable option long term, or for handling more than CNAME.

iamnewton commented 7 years ago

So for now thats the best option? Is there any future where this could be added as an option to pass to sassdoc?

KittyGiraudel commented 7 years ago

@pascalduez @valeriangalliat Do you remember why we didn’t make this possible?

pascalduez commented 7 years ago

I remember we went through lots of different steps and encoutered issues with the destination folder. That's why we extracted some of our code and created the safe-wipe library.

Maybe because it seems the easiest way to ensure generated files are properly updated, and not too much trash remaining.

Right now I can't find arguments against not swiping it. I guess it could be introduced with a new flag/option... ?

iamnewton commented 7 years ago

Thanks so much for all the attention and hard work you guys have put on this issue. I really appreciate it.