Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (21 sloc) 918 Bytes

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