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.
This guard will run JSHint for you automatically when files are modified.
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
For configuration example, see example/config.json and the available 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.
guard 'jshint-node', :config => 'path/to/config.json' do
watch(%r{^scripts\/.*\.js$})
end
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
bundle exec rake