Replies: 3 comments 4 replies
-
I’m happy that you have found Polylith and also the recordings.
There’s the “poly sync” command that will add any missing components in the projects. If you have code that is already added to a project (such as a base) that import Polylith components: the command will add the ones used, but missing in the configs.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, you add the base manually to the project. I can see the use case to directly add it to a project when created. The workflow is often the other way, you start with writing code - before you have defined a project. Polylith is very code-focused and treats the projects as implementation details that you can think about later in the process.
The idea is to allow the teams to begin where they want: the feature, the endpoint - or the deployable artifact (the project).
I like your idea and think it would make sense to have an option to add a created base with a command or from the existing “poly create base” command. This would make sense for the use case when you begin defining a project before the code.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I like the idea of an interactive way for the project initialization!
I’ll think about it. Usually, adding a base is such a simple operation that adding it manually is quick and straightforward and a one-time thing. But a more wizard-like way of adding would be cool, if the CLI is designed with good UX.
About poly sync:
Yes, if you have a base added, the other used bricks will be added with “poly sync”. The command is following the imports.
(Sorry for not replying in the thread, responses via email doesn’t seem to be supported that well in GitHub)
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am just getting started with the Polylith architecture so please excuse me if I got something wrong. So far I really like this design and look forward to working with this structure.
I have spent a lot of today researching and watching your talks and Youtube videos and one thing struck me as a bit odd: the poly cli supports almost every management operation and looks to be quite automation friendly, but if I want to add a brick to a deployment then suddenly I have to manually edit a /projects/project-1/pyproject.toml and then add lines like ../../components/component1, ../../bases/base1 etc.
Am I missing something? I just watched the poly cli youtube video and that was how you did it too there. I was kind of expecting a command like: poly add project1 components/component1 bases/base1 ...
Is this something that would make sense? I am used to using uv so I guess that is where my expectation comes from.
Beta Was this translation helpful? Give feedback.
All reactions