Skip to content

Commit 60b0456

Browse files
committed
Use frontend maven plugin to build frontend app
1 parent f732f1c commit 60b0456

File tree

18 files changed

+3872
-291
lines changed

18 files changed

+3872
-291
lines changed

todo-frontend/pom.xml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,55 @@
142142
</execution>
143143
</executions>
144144
</plugin>
145+
<plugin>
146+
<groupId>com.github.eirslett</groupId>
147+
<artifactId>frontend-maven-plugin</artifactId>
148+
<version>1.15.1</version>
149+
<configuration>
150+
<installDirectory>target</installDirectory>
151+
<nodeVersion>v22.11.0</nodeVersion>
152+
</configuration>
153+
<executions>
154+
<execution>
155+
<id>install node and npm</id>
156+
<goals>
157+
<goal>install-node-and-npm</goal>
158+
</goals>
159+
</execution>
160+
<execution>
161+
<id>npm install ui</id>
162+
<goals>
163+
<goal>npm</goal>
164+
</goals>
165+
<configuration>
166+
<arguments>install</arguments>
167+
<workingDirectory>${project.basedir}/ui</workingDirectory>
168+
</configuration>
169+
</execution>
170+
<execution>
171+
<id>npm run lint ui</id>
172+
<goals>
173+
<goal>npm</goal>
174+
</goals>
175+
<phase>test</phase>
176+
<configuration>
177+
<arguments>run lint</arguments>
178+
<workingDirectory>${project.basedir}/ui</workingDirectory>
179+
</configuration>
180+
</execution>
181+
<execution>
182+
<id>npm run build ui</id>
183+
<goals>
184+
<goal>npm</goal>
185+
</goals>
186+
<phase>compile</phase>
187+
<configuration>
188+
<arguments>run build</arguments>
189+
<workingDirectory>${project.basedir}/ui</workingDirectory>
190+
</configuration>
191+
</execution>
192+
</executions>
193+
</plugin>
145194
</plugins>
146195
</build>
147196

todo-frontend/src/main/resources/static/components.jsx

Lines changed: 0 additions & 102 deletions
This file was deleted.

todo-frontend/src/main/resources/static/index.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

todo-frontend/src/main/resources/static/main.jsx

Lines changed: 0 additions & 169 deletions
This file was deleted.

todo-frontend/ui/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

0 commit comments

Comments
 (0)