mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 02:58:31 +08:00
71 lines
2.4 KiB
XML
71 lines
2.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">
|
|
|
|
|
|
<parent>
|
|
<artifactId>metersphere-server</artifactId>
|
|
<groupId>io.metersphere</groupId>
|
|
<version>1.6</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.9.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>
|
|
<executions>
|
|
<execution>
|
|
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
|
<id>install node and yarn</id>
|
|
<goals>
|
|
<goal>install-node-and-yarn</goal>
|
|
</goals>
|
|
<!-- optional: default phase is "generate-resources" -->
|
|
<phase>generate-resources</phase>
|
|
<configuration>
|
|
<nodeVersion>v12.14.1</nodeVersion>
|
|
<yarnVersion>v1.21.1</yarnVersion>
|
|
</configuration>
|
|
</execution>
|
|
<!-- Install all project dependencies -->
|
|
<execution>
|
|
<id>yarn install</id>
|
|
<goals>
|
|
<goal>yarn</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>yarn build</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>build</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|