Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
added jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
peternijssen committed Nov 14, 2014
1 parent 02b2183 commit 92f0229
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.xml
Expand Up @@ -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"
Expand Down Expand Up @@ -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" />
Expand Down
3 changes: 3 additions & 0 deletions src/Jumph/Bundle/AppBundle/Resources/public/js/example.js
@@ -0,0 +1,3 @@
$(document).ready(function() {

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

0 comments on commit 92f0229

Please sign in to comment.