Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.614 kb
# Reads the license file and returns its contents formatted as
# a multiline JavaScript comment for embedding in source code
jake_helper :license do
"/**\n" + File.read('MIT-LICENSE').split(/\n/).map { |line|
" * #{ line }"
}.join("\n") + "\n */"
end
jake_hook :build_complete do |build|
%w[CHANGELOG MIT-LICENSE].each do |doc|
FileUtils.cp doc, "#{build.build_directory}/#{doc}"
end
FileUtils.cp 'README.markdown', "#{build.build_directory}/README"
build.packages.each do |doc|
FileUtils.cp build.package(doc).build_path(:min), "site/site/javascripts/js.class/#{doc}.js"
end
end
Jump to Line
Something went wrong with that request. Please try again.