Skip to content

Commit

Permalink
Add rule to build jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 20, 2013
1 parent acfc301 commit 87b1635
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.xml
Expand Up @@ -4,6 +4,9 @@
<property name="source" value="."/>
<property name="source_comma_sep" value="."/>

<fileset dir="${source}" includes="js/*.js" id="jsfiles" />
<pathconvert pathsep=" " property="js-list" refid="jsfiles" />

<target name="clean" description="Clean up and create artifact directories">
<delete dir="${basedir}/build/api"/>
<delete dir="${basedir}/build/code-browser"/>
Expand Down Expand Up @@ -102,5 +105,11 @@
</exec>
</target>

<target name="jshint" description="Javascript checks">
<exec executable="jshint" output="${basedir}/build/logs/jslint.xml">
<arg line="--jslint-reporter ${js-list}" />
</exec>
</target>

<target name="build" depends="clean,phpunit,pdepend,phpmd,phpcpd,phpcs,phpdoc,phploc,phpcb"/>
</project>

0 comments on commit 87b1635

Please sign in to comment.