Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Guard::JshintNode automatically runs JSHint when watched files are modified
Ruby JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/guard
spec
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
guard-jshint-node.gemspec
jshint-config.json

README.md

This project is no longer maintained by me since I'm not using Guard in my projects anymore. Feel free to contact me if you wan't to be a new maintainer.

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
Something went wrong with that request. Please try again.