Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Guard::JshintNode automatically runs JSHint when watched files are modified

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.