Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
/ guard-jshint-node Public archive

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

License

Notifications You must be signed in to change notification settings

pahen/guard-jshint-node

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published