|
@@ -33,4 +33,51 @@
|
|
|
<npm.version>8.1.2</npm.version>
|
|
|
<sonar.sources>src</sonar.sources>
|
|
|
</properties>
|
|
|
+
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>release</id>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.github.eirslett</groupId>
|
|
|
+ <artifactId>frontend-maven-plugin</artifactId>
|
|
|
+ <version>${frontend-maven-plugin.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>install node and npm</id>
|
|
|
+ <goals>
|
|
|
+ <goal>install-node-and-npm</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <nodeVersion>${node.version}</nodeVersion>
|
|
|
+ <npmVersion>${npm.version}</npmVersion>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>npm install</id>
|
|
|
+ <goals>
|
|
|
+ <goal>npm</goal>
|
|
|
+ </goals>
|
|
|
+ <phase>generate-resources</phase>
|
|
|
+ <configuration>
|
|
|
+ <arguments>install</arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>npm run build:prod</id>
|
|
|
+ <goals>
|
|
|
+ <goal>npm</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <arguments>run build:prod</arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
</project>
|