Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (12 sloc) 0.49 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
DIR = File.dirname(__FILE__)
require File.join(DIR, 'lib', 'faye')

jake_hook :build_complete do |build|
  browser_min = build.package('faye-browser').build_path(:min)
  FileUtils.cp browser_min, DIR + '/lib/faye-browser-min.js'
  
  [[:'faye-node', :min], [:core, :src], [:core, :min]].each do |(pkg,typ)|
    FileUtils.rm build.package(pkg).build_path(typ)
  end
  
  %w[package.json README.rdoc History.txt].each do |doc|
    FileUtils.cp doc, File.join(build.build_dir, doc)
  end
end
Something went wrong with that request. Please try again.