Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.83 kB
desc "rebuild the backbone-min.js files for distribution"
task :build do
check 'uglifyjs', 'UglifyJS', 'https://github.com/mishoo/UglifyJS2'
system 'uglifyjs backbone.js --mangle --source-map backbone-min.map -o backbone-min.js'
end
desc "build the docco documentation"
task :doc do
check 'docco', 'docco', 'https://github.com/jashkenas/docco'
system 'docco backbone.js && docco examples/todos/todos.js examples/backbone.localstorage.js'
end
desc "run JavaScriptLint on the source"
task :lint do
check 'jsl', 'JavaScript Lint', 'http://www.javascriptlint.com/'
system "jsl -nofilelisting -nologo -conf docs/jsl.conf -process backbone.js"
end
# Check for the existence of an executable.
def check(exec, name, url)
return unless `which #{exec}`.empty?
puts "#{name} not found.\nInstall it from #{url}"
exit
end
Jump to Line
Something went wrong with that request. Please try again.