Add Checkstyle and Prettier to BFF #65

Merged
stne3960 merged 15 commits from chore/checkstyle into main 2026-01-13 13:17:19 +01:00
2 changed files with 32 additions and 6 deletions
Showing only changes of commit e5295f498d - Show all commits

View File

@ -17,11 +17,5 @@ jobs:
distribution: temurin
java-version: 25
cache: maven
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: bff/package-lock.json
- run: npm ci
- name: Run checkstyle and prettier
run: ./mvnw validate --batch-mode

View File

@ -86,6 +86,15 @@
<prettierJavaVersion>2.8.1</prettierJavaVersion>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<nodeVersion>v22.13.0</nodeVersion>
<installDirectory>${project.build.directory}</installDirectory>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
@ -102,6 +111,29 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install-node-and-npm</id>
<phase>validate</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
</execution>
<execution>
<id>npm-install</id>
<phase>validate</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>prettier-maven-plugin</artifactId>