Commit 94169f7c authored by Mathijs den Burger's avatar Mathijs den Burger Committed by Bert Leunis

CMS-11604 Use frontend-maven-plugin to build with NodeJs and NPM

Use "npm ci" instead of "npm install" to avoid pulling in newer versions
of dependencies automatically.

(cherry picked from commit c50d6787)
parent d63a9f2f
......@@ -3,5 +3,6 @@
.DS_Store
atlassian-ide-plugin.xml
classes/
node_modules/
target/
/dashboard/node/
/dashboard/node_modules/
This diff is collapsed.
......@@ -50,30 +50,40 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${maven.plugin.frontend.version}</version>
<executions>
<execution>
<id>npm-install</id>
<phase>generate-sources</phase>
<goals><goal>exec</goal></goals>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<executable>npm</executable>
<commandlineArgs>ci</commandlineArgs>
<nodeVersion>${nodejs.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<phase>process-resources</phase>
<goals><goal>exec</goal></goals>
<id>npm ci</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<executable>npm</executable>
<commandlineArgs>run build</commandlineArgs>
<arguments>ci</arguments>
</configuration>
</execution>
<execution>
<id>npm run build</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment