Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (21 sloc) 0.477 kb
142ab12 @smtlaissezfaire Add rakefile
authored
1
2 desc "JS lint the project. Must have jsl installed in path"
3 task :jsl do
4 def jsl_file(filename)
5 puts `jsl -process #{filename}`
6 end
7
69ede09 @smtlaissezfaire Don't jsl dependencies
authored
8 files = [
9 Dir.glob("lib/**/*.js"),
10 Dir.glob("spec/unit/**/*.js"),
11 "spec/node.js"
12 ].flatten
13
14 files.each do |file|
142ab12 @smtlaissezfaire Add rakefile
authored
15 unless file =~ /vendor/
16 jsl_file(file)
17 end
18 end
19 end
20
21 desc "Run specs by opening in browser. Only works on OS X"
22 task :spec do
23 sh "node spec/node.js"
24 end
25
ece33be @smtlaissezfaire Update default task to run both jsl & spec
authored
26 task :default => [:jsl, :spec]
Something went wrong with that request. Please try again.