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
Branch: master
Pull request Compare This branch is 23 commits behind pahen:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README.md

Guard::JshintNode

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-node-jshint

Or add it to your Gemfile:

gem 'guard-node-jshint'

And then add a basic setup to your Guardfile:

guard init node-jshint

Usage

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

Options

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

Specify path to config file.

  • :notify # default => true

If Growl messages should be displayed or not.

Example

guard 'jshint-node', :config => 'path/to/config.json' do
    watch(%r{^scripts\/.*\.js$})
end
Something went wrong with that request. Please try again.