# A sample Guardfile # More info at https://github.com/guard/guard#readme guard :jasmine, console: :always do watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' } watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$}) watch(%r{spec/javascripts/fixtures/.+$}) watch(%r{app/assets/stylesheets/.+$}) watch(%r{app/assets/javascripts/(.+?)\.(js\.coffee|js|coffee)(?:\.\w+)*$}) { |m| "spec/javascripts/#{ m[1] }_spec.#{ m[2] }" } end # verify that application Javascript files are lintable # see https://github.com/psionides/jslint_on_rails guard 'jslint-on-rails' do # watch for changes to application javascript files watch(%r{^app/assets/javascripts/.*\.js$}) # watch for changes to the JSLint configuration watch('config/jslint.yml') end