codelovers / assetic-jshint
JSHint filter for assetic
dev-master
2014-03-08 18:27 UTC
Requires
- kriswallsmith/assetic: 1.1.*@dev
Requires (Dev)
- phpunit/phpunit: 4.0.*@dev
This package is not auto-updated.
Last update: 2024-11-23 15:39:56 UTC
README
JSHint filter for Assetic
Most likely you will want to use this filter in a Symonfy 2 app. So we've created a bundle too :)
codelovers/assetic-jshint-bundle
Standalone usage
This filter will pass given assets through JsHint and throw an exception if any error has been found. To run it, you will need JsHint installed. Assuming you already have installed node.js, you can install JsHint easily:
npm install -g jshint
The filter then only needs the path to the jshint binary as it's only constructor argument. Most likely it will be /usr/bin/jshint
, which is the default value, or /usr/local/bin/jshint
<?php $filter = new JsHintFilter(); // if your jshint binary is in /usr/bin/jshint $filter = new JsHintFilter("/path/to/jshint");