thijskok / phpci-jshint-plugin
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHPCI plugin for JSHint integration
v1.0.0
2016-08-05 12:55 UTC
Requires
- php: >=5.3.3
Requires (Dev)
- block8/phpci: 1.7.x
This package is auto-updated.
Last update: 2020-01-28 12:42:58 UTC
README
A plugin for PHPCI to check your Javascript using JSHint.
Install the Plugin
- Navigate to your PHPCI root directory and run
composer require thijskok/phpci-jshint-plugin
- Copy
build-plugins/jshint.js
to/path/to/phpci/public/assets/js/build-plugins/jshint.js
- If you are using the PHPCI daemon, restart it
- Update your
phpci.yml
in the project you want to deploy with
Prerequisites
- JSHint needs to be installed.
Plugin Options
- path [string, optional] - Directory in which JSHint should run (default: build root)
- allowed_warnings [int, optional] - The warning limit for a successful build (default: 0). -1 disables warnings
PHPCI Config
ThijsKok\PHPCI\Plugin\JSHint: path: 'resources/js' allowed_warnings: 10
example:
setup: ThijsKok\PHPCI\Plugin\JSHint: path: 'resources/js'