🎉 Adding some interactivity to the tool: suggest base and components to add when creating a project #363
DavidVujic
announced in
Announcements
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
🤖 Adding some interactivity to the Poetry plugin and the CLI:
poly create projectwill now suggest adding bases and components, if there is any base that is not yet used by an existing project.This is available in the CLI v1.33.0 and the Poetry plugin 1.40.0.
Background
In a single-project repo, you usually begin with defining the project structure such as creating a
pyproject.tomlfile and adding configuration. Later on you can start writing code.In Polylith, this workflow is not required. You can start coding the features by adding bricks and composing them, or just experiment with different solutions in the development folder - before thinking about deployment, linting config or project setup.
As with a single-repo setup, you can also start with the project configuration if that's what you prefer. The important thing is that Polylith won't get in your way on how to set up things. It's the Developer Experience of the Polylith Architecture. ⭐
With this release,
poly create projectwill create the project data as before. If there are any unusedbasesin the Polylith workspace, you will be asked if you want to add bricks to the new project. You pick abaseand the needed bricks will be added to the newly created project. It's just like the existingpoly synccommand!Example workflow
You are developing a new feature and begin adding bricks. When ready, you create a project. This is where the new interactive things will happen. When there is one or several
basesthat are not in use already, the tool will ask if you want to add one of the bases. If yes, it will sync all the necessary components. That's it.This is a first approach towards possible future interactive flows in the Polylith tooling, and the idea comes from you! (see discussion #352)
I hope you will find this addition to the Polylith tool useful!
Demo
Beta Was this translation helpful? Give feedback.
All reactions