build: 使用npm代替yarn
This commit is contained in:
parent
53c41126da
commit
d61d64fa22
|
@ -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.9.1</frontend-maven-plugin.version>
|
||||
<frontend-maven-plugin.version>1.12.0</frontend-maven-plugin.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
|
@ -28,22 +28,21 @@
|
|||
<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>
|
||||
<nodeVersion>v16.12.0</nodeVersion>
|
||||
</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
|
||||
|
@ -55,12 +54,12 @@
|
|||
</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>
|
||||
<arguments>run build</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
Loading…
Reference in New Issue