Skip to content

Commit

Permalink
WW-4522 Support latest stable AngularJS version in maven angularjs ar…
Browse files Browse the repository at this point in the history
…chetype

- Add maven plugin for automatic jshint execution on build
  • Loading branch information
jogep committed Jul 11, 2015
1 parent 9ef3aba commit 4969750
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<fileSet filtered="false" packaged="false">
<directory>src/main/resources</directory>
<includes>
<include>log4j.properties</include>
<include>jshint.conf.js</include>
</includes>
</fileSet>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,29 @@
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>com.cj.jshintmojo</groupId>
<artifactId>jshint-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>lint</goal>
</goals>
</execution>
</executions>
<configuration>
<configFile>src/main/resources/jshint.conf.js</configFile>
<directories>
<directory>src/main/webapp/js/</directory>
</directories>
<excludes>
<exclude>src/main/webapp/js/lib</exclude>
</excludes>
<reporter>jslint</reporter>
<reportFile>target/jshint.xml</reportFile>
<failOnError>true</failOnError>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"maxparams": 3,
"indent": true,
"camelcase": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"latedef": false,
"noarg": true,
"noempty": true,
"nonew": true,
"globals": {}
}

0 comments on commit 4969750

Please sign in to comment.