Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposition: elm-json merge when vendoring elm packages #36

Open
j-maas opened this issue Sep 14, 2021 · 1 comment
Open

Feature proposition: elm-json merge when vendoring elm packages #36

j-maas opened this issue Sep 14, 2021 · 1 comment

Comments

@j-maas
Copy link

j-maas commented Sep 14, 2021

I was just debugging a library and vendored it into my app to test the changes I made. For that I downloaded the library's source code and referenced it in my elm.json's src-directories. But I had to manually figure out which dependencies I needed to add to my app's elm.json.

With that use case in mind, I would propose an elm-json merge command which takes two elm.json and figures out which dependencies of the first need to be installed in the second. Usage could look like elm-json merge --from ../library/elm.json --into ./elm.json.

Is this a feature that would fit this utility?

@j-maas
Copy link
Author

j-maas commented Sep 26, 2021

I just noticed that it's enough to get a list of the package names and feed that into elm-json install. It will install everything just fine.

So the only tedious part is getting the list of package names to feed into that, for which I currently use regexr.com with the regex "(.+?)": and then its list tool with the pattern $1 to output them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant