Skip to content

Commit

Permalink
Fixes #1207: externalized client build from maven (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored Oct 26, 2016
1 parent baaa7d4 commit 8173109
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 74 deletions.
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#!/bin/bash
set -e

npm install
npm run compile
npm run lint
npm test
mvn clean install
75 changes: 1 addition & 74 deletions web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,80 +82,7 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.1</version>

<executions>

<execution>
<id>install node and npm</id>
<phase>compile</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v4.6.1</nodeVersion>
<npmVersion>3.10.5</npmVersion>
<installDirectory>..</installDirectory>
</configuration>
</execution>

<execution>
<id>npm install</id>
<phase>compile</phase>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
<installDirectory>..</installDirectory>
</configuration>
</execution>

<execution>
<id>npm run compile</id>
<phase>compile</phase>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>run compile</arguments>
<installDirectory>..</installDirectory>
</configuration>
</execution>

<execution>
<id>npm run lint</id>
<goals>
<goal>npm</goal>
</goals>
<phase>test</phase>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>run lint</arguments>
<installDirectory>..</installDirectory>
</configuration>
</execution>

<execution>
<id>npm test</id>
<goals>
<goal>npm</goal>
</goals>
<phase>test</phase>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<skip>${skipTests}</skip>
<arguments>run mvntest</arguments>
<installDirectory>..</installDirectory>
</configuration>
</execution>
</executions>
</plugin>


<plugin>
<artifactId>maven-resources-plugin</artifactId>
Expand Down

0 comments on commit 8173109

Please sign in to comment.