Guard::JshintNode

Build Status

This guard will run JSHint for you automatically when files are modified.

Install

Make sure you have guard and jshint installed.

Install the gem with:

gem install guard-jshint-node

Or add it to your Gemfile:

gem 'guard-jshint-node'

And then add a basic setup to your Guardfile:

guard init jshint-node

Usage

For configuration example, see example/config.json and the available options.

Options

  • :executable # default => "jshint"

Specify alternative path to the jshint command.

  • :config # default => "jshint-config.json"

Specify path to config file.

  • :notify_on_success # default => true

If Growl messages should be displayed on success or not.

  • :notify_on_failure # default => true

If Growl messages should be displayed on failure or not.

Example

guard 'jshint-node', :config => 'path/to/config.json' do
    watch(%r{^scripts\/.*\.js$})
end

Build & Test Install

bundle -V check
gem build -V guard-jshint-node.gemspec
gem check --verify guard-jshint-node-<VERSION>.gem

gem install --local -V guard-jshint-node-<VERSION>.gem
gem uninstall -a guard-jshint-node

Running Tests

bundle exec rake