mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-10 17:00:17 +08:00
102 lines
3.4 KiB
XML
102 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<packaging>pom</packaging>
|
|
|
|
<parent>
|
|
<groupId>io.metersphere</groupId>
|
|
<artifactId>sdk-parent</artifactId>
|
|
<version>${revision}</version>
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>frontend</artifactId>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<version>${frontend-maven-plugin.version}</version>
|
|
<configuration>
|
|
<installDirectory>../../../.node</installDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
|
<id>install node and npm</id>
|
|
<goals>
|
|
<goal>install-node-and-npm</goal>
|
|
</goals>
|
|
<!-- optional: default phase is "generate-resources" -->
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<nodeVersion>v16.10.0</nodeVersion>
|
|
<npmVersion>8.12.1</npmVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
|
<id>install node and pnpm</id>
|
|
<goals>
|
|
<goal>install-node-and-pnpm</goal>
|
|
</goals>
|
|
<!-- optional: default phase is "generate-resources" -->
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<nodeVersion>v16.10.0</nodeVersion>
|
|
<pnpmVersion>7.9.5</pnpmVersion>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<!-- Install all project dependencies -->
|
|
<execution>
|
|
<id>npm install</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<!-- optional: The default argument is actually
|
|
"install", so unless you need to run some other yarn command,
|
|
you can remove this whole <configuration> section.
|
|
-->
|
|
<arguments>install</arguments>
|
|
</configuration>
|
|
</execution>
|
|
<!-- Build and minify static files -->
|
|
<execution>
|
|
<id>npm run build</id>
|
|
<goals>
|
|
<goal>npm</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>run build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>dist</directory>
|
|
<includes>
|
|
<include>**</include>
|
|
</includes>
|
|
<followSymlinks>false</followSymlinks>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|