Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 18 lines (16 sloc) 0.37 kb
8a2a8d9 Provide example with new TestTask
Dean Strelau authored
1 begin
2 require 'jslint/testtask'
66f221e Initial Commit
Dean Strelau authored
3
8a2a8d9 Provide example with new TestTask
Dean Strelau authored
4 JSLint::TestTask.new do |t|
5 t.file_list = Dir['{app,lib}/assets/javascripts/**/*.js']
6 t.options = {
7 browser: true,
8 nomen: true,
9 plusplus: true,
10 sloppy: true,
11 white: true
12 }
66f221e Initial Commit
Dean Strelau authored
13 end
8a2a8d9 Provide example with new TestTask
Dean Strelau authored
14 Rake::Task[:test].enhance(['jslint'])
15 rescue LoadError
16 # JSLint not loaded (eg, in production). Oh well.
66f221e Initial Commit
Dean Strelau authored
17 end
Something went wrong with that request. Please try again.