revert: 使用npm代替yarn

This commit is contained in:
CaptainB 2021-11-15 20:36:54 +08:00 committed by 刘瑞斌
parent 427bfa6a4a
commit 5688b3ca1a
1 changed files with 10 additions and 9 deletions

View File

@ -16,7 +16,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<frontend-maven-plugin.version>1.12.0</frontend-maven-plugin.version>
<frontend-maven-plugin.version>1.9.1</frontend-maven-plugin.version>
</properties>
<build>
@ -28,21 +28,22 @@
<executions>
<execution>
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
<id>install node and npm</id>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-npm</goal>
<goal>install-node-and-yarn</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v16.12.0</nodeVersion>
<nodeVersion>v16.10.0</nodeVersion>
<yarnVersion>v1.22.15</yarnVersion>
</configuration>
</execution>
<!-- Install all project dependencies -->
<execution>
<id>npm install</id>
<id>yarn install</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<configuration>
<!-- optional: The default argument is actually
@ -54,12 +55,12 @@
</execution>
<!-- Build and minify static files -->
<execution>
<id>npm run build</id>
<id>yarn build</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run build</arguments>
<arguments>build</arguments>
</configuration>
</execution>
</executions>