sassdoc icon indicating copy to clipboard operation
sassdoc copied to clipboard

Prevent `dest` from being deleted

Open iamnewton opened this issue 7 years ago • 8 comments

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

iamnewton avatar Jun 27 '17 16:06 iamnewton

Out of curiosity, why?

KittyGiraudel avatar Jun 27 '17 16:06 KittyGiraudel

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

iamnewton avatar Jun 27 '17 17:06 iamnewton

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

KittyGiraudel avatar Jun 27 '17 17:06 KittyGiraudel

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.

mirisuzanne avatar Jun 27 '17 17:06 mirisuzanne

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

iamnewton avatar Jun 27 '17 17:06 iamnewton

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

KittyGiraudel avatar Jun 27 '17 18:06 KittyGiraudel

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

pascalduez avatar Jun 27 '17 23:06 pascalduez

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

iamnewton avatar Jun 28 '17 18:06 iamnewton