bridgetown icon indicating copy to clipboard operation
bridgetown copied to clipboard

feat: keep_files should be configurable for `bridgetown deploy`

Open whysthatso opened this issue 2 years ago • 3 comments

Summary

add a keep_files option to the deploy command similar to the existing option in build.

Motivation

the deploy runs Bridgetown::Commands::Clean.start which nukes the destination dir. i use git to deploy the build artifacts to a destination, and would need the .git dir to stick around. the build command has a keep_files option, and i would like to have a similar option for deploy

there's been a brief discussion about a similar issue in #232

whysthatso avatar Sep 12 '22 10:09 whysthatso

Yeah, this definitely feels like an oversight/bug. Thanks for filing the issue(s).

jaredcwhite avatar Sep 13 '22 15:09 jaredcwhite

is there a guide how to contribute to the documentation? i could put in a pr possibly.

whysthatso avatar Sep 14 '22 08:09 whysthatso

@whysthatso So the running of the clean task is just part of the site's customizable Rakefile, so you can definitely just take that out if it's causing an issue. Maybe we can document that option here. I don't think there's a change needed to the internal code.

jaredcwhite avatar Nov 23 '22 07:11 jaredcwhite