Permalink
Browse files

added jshint

  • Loading branch information...
peternijssen committed Nov 14, 2014
1 parent 02b2183 commit 92f0229bb1cd60e7ee1a5a4631f84cbc4759ad1d
Showing with 14 additions and 1 deletion.
  1. +11 −1 build.xml
  2. +3 −0 src/Jumph/Bundle/AppBundle/Resources/public/js/example.js
@@ -2,7 +2,7 @@
<project name="Jumph" default="build">
<property name="toolsdir" value="bin/" />
<target name="build"
depends="prepare,copy-parameters,bower,composer,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
depends="prepare,copy-parameters,bower,composer,jshint,lint,phploc-ci,pdepend,phpmd-ci,phpcs-ci,phpcpd-ci,phpunit,phpdox"
description=""/>

<target name="build-parallel"
@@ -68,6 +68,16 @@
</exec>
</target>

<target name="jshint" description="Run the JSHint tool on JavaScript files">
<fileset dir="${basedir}/src" id="jsfiles.raw">
<include name="**/*.js" />
</fileset>
<pathconvert pathsep=" " property="jsfiles.clean" refid="jsfiles.raw" />
<exec executable="jshint" output="${basedir}/build/logs/jshint.xml">
<arg line="--reporter=jslint ${jsfiles.clean}" />
</exec>
</target>

<target name="lint" description="Perform syntax check of sourcecode files">
<apply executable="php" failonerror="true">
<arg value="-l" />
@@ -0,0 +1,3 @@
$(document).ready(function() {

}; //Error on purpose to check JSHint / JSLint

0 comments on commit 92f0229

Please sign in to comment.