Allow Maven to build the frontend (#857)
This commit is contained in:
parent
b5da41c651
commit
df8118c707
3 changed files with 35 additions and 4 deletions
3
keycloak-theme/.gitignore
vendored
3
keycloak-theme/.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
# See: https://github.com/github/gitignore/blob/master/Maven.gitignore
|
||||
src/
|
||||
node/
|
||||
# https://github.com/github/gitignore/blob/master/Maven.gitignore
|
||||
target/
|
||||
pom.xml.tag
|
||||
pom.xml.releaseBackup
|
||||
|
|
|
@ -5,9 +5,7 @@ The Maven build prepares the admin console to be deployed as a theme on the Keyc
|
|||
# Build Instructions
|
||||
|
||||
```bash
|
||||
$> npm run build
|
||||
$> cd build
|
||||
$> mvn install
|
||||
mvn install
|
||||
```
|
||||
|
||||
# Deployment
|
||||
|
|
|
@ -54,6 +54,38 @@
|
|||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>1.9.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm install</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm run build</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>run build</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<nodeVersion>v16.5.0</nodeVersion>
|
||||
<workingDirectory>../</workingDirectory>
|
||||
<installDirectory>.</installDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
|
|
Loading…
Reference in a new issue