Skip to content

Instantly share code, notes, and snippets.

View DFrenkel's full-sized avatar

Dmitry Frenkel DFrenkel

View GitHub Profile
@gijs
gijs / 04_jshint.rake
Created October 25, 2011 08:01 — forked from jamesarosen/04_jshint.rake
Javascript Loves CI: Jenkins + Jasmine + PhantomJS + JSHint
namespace :jshint do
task :require do
sh "which jshint" do |ok, res|
fail 'Cannot find jshint on $PATH' unless ok
end
end
task :check => 'jshint:require' do
project_root = File.expand_path('../../', File.dirname(__FILE__))
config_file = File.join(project_root, 'config', 'jshint.json')