89 lines
3.4 KiB
XML
89 lines
3.4 KiB
XML
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>ru.mskobaro</groupId>
|
|
<artifactId>tdms</artifactId>
|
|
<version>0.0.1</version>
|
|
</parent>
|
|
|
|
<groupId>ru.mskobaro.tdms</groupId>
|
|
<artifactId>web</artifactId>
|
|
<version>0.0.1</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>TDMS::WEB</name>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<version>1.15.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>install nodejs and npm</id>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<nodeVersion>v20.12.0</nodeVersion>
|
|
<npmVersion>10.5.0</npmVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>install dependencies</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>build frontend</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<arguments>run build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<nodeVersion>v20.12.0</nodeVersion>
|
|
<workingDirectory>./</workingDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>3.3.2</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>./dist</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
<fileset>
|
|
<directory>./node</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|