blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.25k stars 96 forks source link

Please make it easy to download source of individual modules #238

Closed pravi closed 2 years ago

pravi commented 3 years ago

In Debian, we'd like to take corresponding source of each module and build then in debian. This means we can't take the npm dist tarballs because they only have the generated files. Tags of this repo has the full repo, so even if we download tags corresponding to a module version, we still have to exclude all other modules from the tarball. I see two possible solutions.

  1. Include the typescript source with the modules published in npmjs.com (this would be the simplest option I think).
  2. If the above option can't be considered, can you provide module-source via npmjs.com or via github releases ? May be that can be automated via github actions https://github.com/softprops/action-gh-release Would you be open to a merge request to setup this action ?
  3. Release everything with a single tag/version like lodash does, each module can be just a file.

Reference https://stackoverflow.com/questions/7106012/download-a-single-folder-or-directory-from-a-github-repo

blakeembrey commented 2 years ago

I would consider option 2 if you want to make a PR, I'm not really interested in maintaining 1. Three is also possible but seems like unnecessary churn.