build: 前端构建改为npm

This commit is contained in:
BugKing 2021-12-28 18:27:20 +08:00 committed by 刘瑞斌
parent aa043f9dbf
commit 03781126ee
1 changed files with 8 additions and 10 deletions

View File

@ -28,22 +28,22 @@
<executions>
<execution>
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
<id>install node and yarn</id>
<id>install node and npm</id>
<goals>
<goal>install-node-and-yarn</goal>
<goal>install-node-and-npm</goal>
</goals>
<!-- optional: default phase is "generate-resources" -->
<phase>generate-resources</phase>
<configuration>
<nodeVersion>v16.10.0</nodeVersion>
<yarnVersion>v1.22.15</yarnVersion>
<npmVersion>6.14.15</npmVersion>
</configuration>
</execution>
<!-- Install all project dependencies -->
<execution>
<id>yarn install</id>
<id>npm install</id>
<goals>
<goal>yarn</goal>
<goal>npm</goal>
</goals>
<configuration>
<!-- optional: The default argument is actually
@ -51,18 +51,16 @@
you can remove this whole <configuration> section.
-->
<arguments>install</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
<!-- Build and minify static files -->
<execution>
<id>yarn build</id>
<id>npm run build</id>
<goals>
<goal>yarn</goal>
<goal>npm</goal>
</goals>
<configuration>
<arguments>build</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>