-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Manage landscape preset configuration #10239
Comments
@murdos and @pascalgrimaud: feel free to drop any suggestions or feedback. I am going to work on this issue 😀 I added a TO-DO/Roadmap to the following issue description: |
I'm not sure to understand what problem we're trying to solve here. IMO a preset is something that the landscape should be able to ingest, in order to:
|
It's a good idea to use a json file to load a pre-selected modules. |
Thank you for the feedback, @murdos and @pascalgrimaud! 😃✌ Short answer: I agree with both of you and will implement loading presets from a JSON file. Here is the JSON file I envision: [
{
"name": "angular + spring boot",
"modules": [
"init",
"application-service-hexagonal-architecture-documentation",
"maven-java",
"prettier",
"angular-core",
"java-base",
"maven-wrapper",
"spring-boot",
"spring-boot-mvc-empty",
"logs-spy",
"spring-boot-tomcat"
]
}
] I removed the Long answer:
My intention was to implement something similar to the preset you defined. I had imagined using the alternative landscape interface to allow the creation of new presets via a web application. But how exactly could we add new presets to the generator using the running application? I think it's not possible. I see another use for presets besides facilitating the generation of repeated projects. I think presets could also function as a tutorial to help users understand how the landscape screen works. |
I propose saving/reading the preset configuration into a JSON file, similar to how
history.json
works. Here is what I think the.jhipster/modules/preset.json
should look like:When applying the selected preset, the properties defined by the landscape interface or default will be used, which is why they won't be stored in the json.
The text was updated successfully, but these errors were encountered: