1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-13 09:46:17 +00:00

Gruntification

This commit is contained in:
jendib
2014-02-23 02:28:44 +01:00
parent 12c3c4750f
commit ae566018d6
94 changed files with 488 additions and 271 deletions

View File

@@ -264,14 +264,44 @@
<plugins>
<!-- Generation of the war -->
<!-- Launch NPM & Grunt -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<target name="building">
<!-- npm install -->
<exec executable="cmd" dir="${project.basedir}/src/main/webapp" osfamily="windows" failonerror="true">
<arg line="/c npm install" />
</exec>
<exec executable="npm" dir="${project.basedir}/src/main/webapp" osfamily="unix" failonerror="true">
<arg line="install" />
</exec>
<!-- grunt -->
<exec executable="cmd" dir="${project.basedir}/src/main/webapp" osfamily="windows">
<arg line="/c grunt --apiurl=api" />
</exec>
<exec executable="grunt" dir="${project.basedir}/src/main/webapp" osfamily="unix">
<arg line="--apiurl=api" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- WAR generation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceExcludes>
sismicsdocs/**,
</warSourceExcludes>
<warSourceDirectory>${basedir}/src/main/webapp/dist</warSourceDirectory>
<webXml>src\main\webapp\WEB-INF\web.xml</webXml>
</configuration>
</plugin>