build: 前端构建改为npm
This commit is contained in:
parent
aa043f9dbf
commit
03781126ee
|
@ -28,22 +28,22 @@
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
<!-- 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>
|
<goals>
|
||||||
<goal>install-node-and-yarn</goal>
|
<goal>install-node-and-npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<!-- optional: default phase is "generate-resources" -->
|
<!-- optional: default phase is "generate-resources" -->
|
||||||
<phase>generate-resources</phase>
|
<phase>generate-resources</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<nodeVersion>v16.10.0</nodeVersion>
|
<nodeVersion>v16.10.0</nodeVersion>
|
||||||
<yarnVersion>v1.22.15</yarnVersion>
|
<npmVersion>6.14.15</npmVersion>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<!-- Install all project dependencies -->
|
<!-- Install all project dependencies -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>yarn install</id>
|
<id>npm install</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>yarn</goal>
|
<goal>npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- optional: The default argument is actually
|
<!-- optional: The default argument is actually
|
||||||
|
@ -51,18 +51,16 @@
|
||||||
you can remove this whole <configuration> section.
|
you can remove this whole <configuration> section.
|
||||||
-->
|
-->
|
||||||
<arguments>install</arguments>
|
<arguments>install</arguments>
|
||||||
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<!-- Build and minify static files -->
|
<!-- Build and minify static files -->
|
||||||
<execution>
|
<execution>
|
||||||
<id>yarn build</id>
|
<id>npm run build</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>yarn</goal>
|
<goal>npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<arguments>build</arguments>
|
<arguments>run build</arguments>
|
||||||
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
Loading…
Reference in New Issue