Rich-Harris / degit

Straightforward project scaffolding
MIT License
7.05k stars 246 forks source link

Tool inspired by degit in zimfw #276

Closed ericbn closed 3 years ago

ericbn commented 3 years ago

Hi @Rich-Harris!

First let me thank you for your project. It's a great idea, and I love the simplicity of the implementation!

It inspired me to create a similar tool in our Zsh Framework.

The difference in our requirements is that we want to update the files too, not only "clone" them once. So I'm using the GitHub API (only GitHub is supported for now) using the /repos/{owner}/{repo}/tarball/{ref} endpoint, which supports HTTP conditional requests.

And for that I'm planning in having a file inside the directory that was "cloned" with information I need to store to be able to update the files later. This file could be named .degit. For now I'm planning the file to have:

<URL>
[REVISION]
<HEADERS>

Like for example:

https://github.com/sindresorhus/pure.git
main
If-None-Match: "935e3f747533fd62d38c3617b0402dd1ef793efbe5cc8d65504e049beeec13f1"

Wanted to check with you if you have plans on having any similar file, and if you agree that I use the .degit name as I described?

ericbn commented 3 years ago

Decided to call our file .zdegit. Hopefully that won't conflict with this project.