-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update foam cli #3
Update foam cli #3
Conversation
Hi @riccardoferretti. Please check this PR. I've tried it and run perfectly using the latest core from foam v0.17.6. Also please add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating foam-cli to the laster foam-core.
I also like the publish workflow, interesting even for Foam itself (with a few changes). I will merge it and tune it to our needs (e.g. be based on tagging).
Out of curiosity, have you considered a "repeatable" pattern to update the foam-core
directory?
One thing I thought of in the past was to release just the contents of the foam-core
directory (in the main Foam repo) as its own npm module, which could then be consumed by the likes of foam-cli or other clients. I haven't had time to investigate that yet though.
I saw until v0.11.0 Foam the develop this way, right? You want me to try break foam into modules like the old one ( |
That's the way it was developed, but it was very cumbersome DX wise (basically working on the extension was much more complicated because of that setup, both from a dev and a build POV), which is the reason why I merged foam-core into foam-vscode. And I was aware that the price to pay was the publishing of the foam-core package and its use in foam-cli (and other third party clients). I wouldn't want to go back to individual packages in Foam, but as you might have noticed the Makes sense? |
I got your pain point but I'm not sure about the solution. Which one did you mean:
Anyway, the old one you use yarn workspace to maintain monorepo for 3 modules. Have you tried modern solution like |
I am not familiar with |
They look very interesting, but I am absolutely not familiar with them, so I am hesitant to introduce them in Foam. |
You're welcome @riccardoferretti. How can I help you and foam team to make the
If you have any other suggestion or reference just tell me so I can help to achieve the modularity. And anyway, when will you tag the latest main branch so it can be published to npm package? |
For now the one requirement I have is that DX in foam-vscode is not disrupted, so I fear both approaches would fall short of that. Yup, I will tag the branch today! |
Okay, I'll try to see how your team works and try to create PoC on my own repo to make the DX same with current condition or even better, and We'll discuss again after. |
Update
foam-cli
to work on latest core as discussed in #2.Needs to do:
foam-cli
internal dependencies to core andpackage.json
and testfoam-cli