Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

thijskok/phpci-jshint-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSHint plugin for PHPCI

A plugin for PHPCI to check your Javascript using JSHint.

Install the Plugin

  1. Navigate to your PHPCI root directory and run composer require thijskok/phpci-jshint-plugin
  2. Copy build-plugins/jshint.js to /path/to/phpci/public/assets/js/build-plugins/jshint.js
  3. If you are using the PHPCI daemon, restart it
  4. Update your phpci.yml in the project you want to deploy with

Prerequisites

  1. 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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published