-
Notifications
You must be signed in to change notification settings - Fork 167
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
fix: always generate themes in frontend 'generated' directory subfolder #14144
Conversation
Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder. Fixes #12880
This is an alternative solution to fix #12880, by storing all generated files (excluding hilla endpoints) in |
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskGenerateIndexTs.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskUpdateThemeImport.java
Outdated
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskUpdateWebpack.java
Outdated
Show resolved
Hide resolved
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.
Should we consider adding a test that checks some of the generated files especially theme-[theme name].generated.js
is not generated under the default frontend directory anymore when there is a custom frontend directory defined?
It seems a good idea. I'll try to add a test for this |
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.
No major comments but if we are hardcoding the use of generated
for theme files we should use the same hardcoded path also for all other generated files and drop the possibility to customize the name/location of the generated
folder
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskUpdateThemeImport.java
Show resolved
Hide resolved
flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskUpdateWebpack.java
Outdated
Show resolved
Hide resolved
After this change, the only |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…er (#14144) Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder. Fixes #12880
…er (#14144) Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder. Fixes #12880
…er (#14144) (CP: 23.0) (#14156) Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder. Fixes #12880
…er (#14144) (CP: 23.1) (#14155) Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder. Fixes #12880
This ticket/PR has been released with Vaadin 23.2.0. |
Description
Forces generated themes files to be stored in 'generated' folder under
frontend directory, instead of using the 'generatedTsFolder' setting.
Also fixes relative paths assuming frontend directory to be './frontend',
and maven and gradle plugins to clean the 'frontendDirectory/generated' folder.
Fixes #12880
Type of change
Checklist
Additional for
Feature
type of change