vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
895 stars 56 forks source link

Improve init-app goal/task to use compatible version of frontend dependencies with the Hilla version #1074

Open taefi opened 1 year ago

taefi commented 1 year ago

Is your feature request related to a problem? Please describe.

Using hilla:init-app on a bare-bone hilla project e.g. coming from Spring Initializr, has the following set backs:

Describe the solution you'd like

The desired solution is to generate the package.json and package-lock.json with a compatible version of frontend dependencies with the version of Hilla in the pom.xml.

Also, it would be nice to initialize the theming by adding:

cromoteca commented 1 year ago

In general, the versions used in Spring Initializr and in our skeletons should be aligned, but generated PRs need to be merged manually, so it can happen that users get different versions. This is a UX issue and we should investigate how to keep them in sync as much as possible. Let's also add the proposed theme class.