fix: prevent deletion of app-shell-imports by frontend cleanup task#24118
Conversation
`TaskRemoveOldFrontendGeneratedFiles` deletes files in the frontend generated folder that are not recognized as known generated files. The `app-shell-imports.js` and `app-shell-imports.d.ts` files were missing from the known files list, causing them to be deleted when `vaadinPrepareFrontend` runs without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy. Add `APP_SHELL_IMPORTS_NAME` and `APP_SHELL_IMPORTS_D_TS_NAME` to the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files. Related to #24108
|
Test Results 1 391 files 1 391 suites 1h 13m 48s ⏱️ Results for commit 0e823ef. |
…24118) `TaskRemoveOldFrontendGeneratedFiles` deletes files in the frontend generated folder that are not recognized as known generated files. The `app-shell-imports.js` and `app-shell-imports.d.ts` files were missing from the known files list, causing them to be deleted when `vaadinPrepareFrontend` runs without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy. Add `APP_SHELL_IMPORTS_NAME` and `APP_SHELL_IMPORTS_D_TS_NAME` to the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files. Related to #24108
|
Hi @mcollovati and @mcollovati, when i performed cherry-pick to this commit to 25.0, i have encountered the following issue. Can you take a look and pick it manually? |
…24118) (CP: 25.1) (#24124) This PR cherry-picks changes from the original PR #24118 to branch 25.1. --- #### Original PR description > `TaskRemoveOldFrontendGeneratedFiles` deletes files in the frontend generated folder that are not recognized as known generated files. The `app-shell-imports.js` and `app-shell-imports.d.ts` files were missing from the known files list, causing them to be deleted when `vaadinPrepareFrontend` runs without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy. > > Add `APP_SHELL_IMPORTS_NAME` and `APP_SHELL_IMPORTS_D_TS_NAME` to the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files. > > Related to #24108 Co-authored-by: Marco Collovati <marco@vaadin.com>
…24118) `TaskRemoveOldFrontendGeneratedFiles` deletes files in the frontend generated folder that are not recognized as known generated files. The `app-shell-imports.js` and `app-shell-imports.d.ts` files were missing from the known files list, causing them to be deleted when `vaadinPrepareFrontend` runs without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy. Add `APP_SHELL_IMPORTS_NAME` and `APP_SHELL_IMPORTS_D_TS_NAME` to the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files. Related to #24108



TaskRemoveOldFrontendGeneratedFilesdeletes files in the frontend generated folder that are not recognized as known generated files. Theapp-shell-imports.jsandapp-shell-imports.d.tsfiles were missing from the known files list, causing them to be deleted whenvaadinPrepareFrontendruns without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy.Add
APP_SHELL_IMPORTS_NAMEandAPP_SHELL_IMPORTS_D_TS_NAMEto the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files.Related to #24108