Repository is archived
No commit activity in last 3 years
No release in over 3 years
Guard::JshintNode automatically runs JSHint when watched files are modified.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.6

Runtime

>= 0.10.0
 Project Readme

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