-
Notifications
You must be signed in to change notification settings - Fork 1
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
Yarn support? #1
Comments
The question is, does the yarn tooling let us pre-seed the caches in a similar way so that we can use it? |
Yep, that's the point of the yarn.lock file. Documentation here. An idle github search brings up a whole host of people using it for things like that, including this rather natty yarn2nix converter. Having a quick look at two real world examples of yarn and npm files, they look somewhat similar! |
Yeah, it seems like npm5 added lock file very much influenced by how yarn works. |
The question is, give an yarn lockfile with:
We can generate a source with this uri and checksum. However, where do we put the pre-downloaded one so that |
As for wheer to put the yarn support. I think maybe we should add a single flatpak git repo with the tools for all of these things, including the pypi one elad is doing. |
The single repo for In the example above I think you're supposed to use the yarn 'offline mirror' concept, which may be a bit of a faff. (it may be that the config in the post is out of date, sources are unclear) |
Yeah, that looks similar to the cache npm5 uses, should be easy to do the same thing then. |
Code moved to a separate repo https://github.com/flatpak/flatpak-builder-tools |
Like all great things in the JS ecosystem, there are two competing package management standards. Yarn has it's own yarn.lock file that describes roughly the same set of info as the package-lock.json. There is controversy here over how to hold these two concepts in tension. Do you think we should add yarn support to a tool like this? Or make a separate
flatpak-yarn-generator
script?The text was updated successfully, but these errors were encountered: