Skip to content

Instantly share code, notes, and snippets.

@karthilxg
Created October 27, 2014 23:58
Show Gist options
  • Save karthilxg/af4f7cbb25eec017d91c to your computer and use it in GitHub Desktop.
Save karthilxg/af4f7cbb25eec017d91c to your computer and use it in GitHub Desktop.
rFontend-maven-plugin-Pom.xml
<!-- This plugin downloads/installs Node and NPM locally for your project -->
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
<workingDirectory>${basedir}/yo/</workingDirectory>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v0.10.30</nodeVersion>
<npmVersion>1.4.21</npmVersion>
</configuration>
</execution>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<!-- Optional configuration which provides for running any npm command -->
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>grunt build</id>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>test</arguments>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment