Rich-Harris/degit

degit into a non-empty directory

thejustinwalsh opened this issue · 0 comments

After reviewing issue #128, i feel i have another use case that I did not understand was not supported.

The README did not lead me to believe that the directory must be empty

I very much want to degit into non-empty directories. I would imagine that others could be using degit in a similar way, and find this a useful / valuable feature.

My use-case is that I am working on scaffolding for defold-typescript where a common workflow would look like:

  • Create a project in Defold
  • cd into the new project directory
  • degit my module in to setup aTypeScript transpiling environment
  • Bonus if the degit.json would remove the files before it pulled the repo in so it would not delete existing files like the readme from parent non-empty directory

Am I way off here with my misinterpretation of the readme and my desire for a tool that satisfies the use-case above?