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
custom frontend folder does not work #12880
Comments
Upvote! In addition to just moving the frontend directory, I'd like to move also the front-end build files. Both having the directory and build files are quite badly against Maven conventions. If we could move those away from the top level directory, it would give much cleaner image for evaluators and users, who get confused about those files (many have chosen Vaadin not to fiddle with JS and/or JS build). https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html |
See also: #6629 |
It seems there are several points to consider for this issue. First, there are two available configurations for front-end stuff in maven plugin: Default values are:
One of the problem here is that if they are completely unrelated, so changes to Here are some usages of the above configurations:
A test exists for custom front-end directory ( Vite suffers from additional problems (see #14046) Some actions we can consider:
Internal improvements
|
Currently some node tasks hard-code the generated folder as child of the frontend directory, whereas other tasks uses the frontendGeneratedFolder configuration. This change makes all tasks use the value of frontendGeneratedFolder. Part of #12880
Currently some node tasks hard-code the generated folder as child of the frontend directory, whereas other tasks uses the frontendGeneratedFolder configuration. This change makes all tasks use the value of frontendGeneratedFolder. Part of #12880
When generatedTsFolder is not explicitly set in configuration, compute the default value based on frontendDirectory instead of hard-coding it to frontend/generated Part of #12880
Currently some node tasks hard-code the generated folder as child of the frontend directory, whereas other tasks uses the frontendGeneratedFolder configuration. This change makes all tasks use the value of frontendGeneratedFolder. Part of #12880
When generatedTsFolder is not explicitly set in configuration, compute the default value based on frontendDirectory instead of hard-coding it to frontend/generated Part of #12880
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) 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.0.13. |
Currently some node tasks hard-code the generated folder as child of the frontend directory, whereas other tasks uses the frontendGeneratedFolder configuration. This change makes all tasks use the value of frontendGeneratedFolder. Part of #12880
When generatedTsFolder is not explicitly set in configuration, compute the default value based on frontendDirectory instead of hard-coding it to frontend/generated Part of #12880
This ticket/PR has been released with Vaadin 23.1.6. |
This ticket/PR has been released with Vaadin 23.2.0. |
Description of the bug
As a developer, I want to use a different frontend folder instead of the default one under the project's root, for example,
src/main/frontend
to be aligned with a Maven project.I tried with the configuration for the maven plugin in the
pom.xml
fileBut still most of the code is generated under the default frontend directory, including the theme generation, so that I got the error in the console
Expected behavior
After configuration with
or some other ways of defining a custom folder, Vaadin will generate the code to that folder and Application runs normally.
Minimal reproducible example
custom-frontend.zip
Versions
The text was updated successfully, but these errors were encountered: