Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Watch for theme changes in other Maven modules (#16740)
- Loading branch information
Showing
16 changed files
with
255 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
flow-tests/test-live-reload-multimodule/library/pom-devbundle.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>flow-test-live-reload-multimodule-devbundle</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.1-SNAPSHOT</version> | ||
<relativePath>../pom-devbundle.xml</relativePath> | ||
</parent> | ||
<artifactId>flow-test-live-reload-multimodule-library-devbundle</artifactId> | ||
<name>The frontend library module for a live reload multi module project (dev bundle)</name> | ||
|
||
<packaging>jar</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>flow-tests</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>flow-test-live-reload-multimodule-devbundle</artifactId> | ||
<name>The main module for a live reload multi module project (dev bundle)</name> | ||
|
||
<packaging>pom</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
<vaadin.devmode.liveReload.enabled>true</vaadin.devmode.liveReload.enabled> | ||
<vaadin.frontend.hotdeploy>false</vaadin.frontend.hotdeploy> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-test-resources</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-test-common</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>vaadin-dev-server</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-test-lumo</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<modules> | ||
<module>library/pom-devbundle.xml</module> | ||
<module>ui/pom-devbundle.xml</module> | ||
<module>theme/pom-devbundle.xml</module> | ||
</modules> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ | |
<modules> | ||
<module>library</module> | ||
<module>ui</module> | ||
<module>theme</module> | ||
</modules> | ||
|
||
</project> |
20 changes: 20 additions & 0 deletions
20
flow-tests/test-live-reload-multimodule/theme/pom-devbundle.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>flow-test-live-reload-multimodule-devbundle</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.1-SNAPSHOT</version> | ||
<relativePath>../pom-devbundle.xml</relativePath> | ||
</parent> | ||
<artifactId>flow-test-live-reload-multimodule-theme-devbundle</artifactId> | ||
<name>The theme module for a live reload multi module project (dev bundle)</name> | ||
|
||
<packaging>jar</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>flow-test-live-reload-multimodule-hotdeploy</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.1-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>flow-test-live-reload-multimodule-theme-hotdeploy</artifactId> | ||
<name>The theme module for a live reload multi module project (hotdeploy)</name> | ||
|
||
<packaging>jar</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
</project> |
3 changes: 3 additions & 0 deletions
3
...-reload-multimodule/theme/src/main/resources/META-INF/resources/themes/mytheme/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body { | ||
background: lightblue; | ||
} |
54 changes: 54 additions & 0 deletions
54
flow-tests/test-live-reload-multimodule/ui/pom-devbundle.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>flow-test-live-reload-multimodule-devbundle</artifactId> | ||
<groupId>com.vaadin</groupId> | ||
<version>24.1-SNAPSHOT</version> | ||
<relativePath>../pom-devbundle.xml</relativePath> | ||
</parent> | ||
<artifactId>flow-test-live-reload-multimodule-ui-devbundle</artifactId> | ||
<name>The UI module for a live reload multi module project (dev bundle)</name> | ||
|
||
<packaging>war</packaging> | ||
<properties> | ||
<maven.deploy.skip>true</maven.deploy.skip> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-test-live-reload-multimodule-library-devbundle</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-test-live-reload-multimodule-theme-devbundle</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.vaadin</groupId> | ||
<artifactId>flow-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>prepare-frontend</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- Run jetty before integration tests, and stop after --> | ||
<plugin> | ||
<groupId>org.eclipse.jetty</groupId> | ||
<artifactId>jetty-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...e-reload-multimodule/ui/src/main/java/com/vaadin/flow/uitest/multimodule/ui/AppShell.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.vaadin.flow.uitest.multimodule.ui; | ||
|
||
import com.vaadin.flow.component.page.AppShellConfigurator; | ||
import com.vaadin.flow.theme.Theme; | ||
|
||
@Theme("mytheme") | ||
public class AppShell implements AppShellConfigurator { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...timodule/ui/src/main/java/com/vaadin/flow/uitest/multimodule/ui/ProjectHotdeployInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.vaadin.flow.uitest.multimodule.ui; | ||
|
||
import com.vaadin.flow.component.Tag; | ||
import com.vaadin.flow.component.html.Div; | ||
import com.vaadin.flow.component.html.Span; | ||
import com.vaadin.flow.server.Mode; | ||
import com.vaadin.flow.server.VaadinContext; | ||
import com.vaadin.flow.server.VaadinService; | ||
import com.vaadin.flow.server.startup.ApplicationConfiguration; | ||
|
||
@Tag("project-hotdeploy-info") | ||
public class ProjectHotdeployInfo extends Div { | ||
|
||
public ProjectHotdeployInfo() { | ||
VaadinContext context = VaadinService.getCurrent().getContext(); | ||
Span hotdeploy = new Span(ApplicationConfiguration.get(context) | ||
.getMode() == Mode.DEVELOPMENT_FRONTEND_LIVERELOAD ? "true" | ||
: "false"); | ||
add(hotdeploy); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters