Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 387 Bytes
desc <<-DESC
JS lint the project. Must have jsl installed in path
DESC
task :jsl do
def jsl_file(filename)
puts `jsl -process #{filename}`
end
Dir.glob("**/*.js").each do |file|
unless file =~ /vendor/
jsl_file(file)
end
end
end
desc "Run specs by opening in browser. Only works on OS X"
task :spec do
`open spec/suite.html`
end
task :default => :jsl