2017 © Pedro Peláez
 

library assetic-jshint-bundle

Symfony bundle that registers the codelovers/assetic-jshint filter

image

codelovers/assetic-jshint-bundle

Symfony bundle that registers the codelovers/assetic-jshint filter

  • Sunday, March 9, 2014
  • by dVelopment
  • Repository
  • 2 Watchers
  • 2 Stars
  • 510 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 9 % Grown

The README.md

JsHintBundle

This Symfony 2 Bundle registers an Assetic filter to pass JavaScript files through JsHint on compilation., (*1)

Installation

Install the bundle using composer (see http://getcomposer.org/ for more information about composer) by adding it to your composer.json file and running composer update:, (*2)

    // composer.json

    "require": {
        // ...
        "codelovers/assetic-jshint": "dev-master",
        "codelovers/assetic-jshint-bundle": "dev-master"
    }

Then just add the bundle to your AppKernel.php file:, (*3)

<?php
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new CodeLovers\JsHintBundle\CodeLoversJsHintBundle(),
    // ...
);

Install JsHint

You will need to install JsHint to use this bundle. We assume you already have installed node.js:, (*4)

npm install -g jshint

Configuration

All you need to configure is the path to your jshint binary. Most likely it will be /usr/bin/jshint (that's the default value of the bundle's configuration) or /usr/local/bin/jshint, (*5)

code_lovers_js_hint:
    jshint_bin: ~

Usage

Simply apply the filter to your JavaScript assets:, (*6)

html+jinja {% javascripts '@AcmeDemoBundle/Resources/js/app.js' filter='jshint' output='compiled/js/app.js' %} ... {% endjavascripts %}, (*7)

The Versions

09/03 2014

dev-master

9999999-dev

Symfony bundle that registers the codelovers/assetic-jshint filter

  Sources   Download

MIT

The Requires

 

by Daniel Holzmann