Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use the new Jake to create source maps.

  • Loading branch information...
commit fd4872b69fa982db16e7a88d43d88c541c29cf92 1 parent 8994faf
@jcoglan jcoglan authored
Showing with 5 additions and 2 deletions.
  1. +3 −1 Jakefile
  2. +1 −1  faye.gemspec
  3. +1 −0  jake.yml
View
4 Jakefile
@@ -6,7 +6,9 @@ jake_hook :build_complete do |build|
FileUtils.cp browser_min, DIR + '/lib/faye-browser-min.js'
[['node/faye-node', :min], ['core', :src], [:core, :min]].each do |(pkg,typ)|
- FileUtils.rm build.package(pkg).build_path(typ)
+ path = build.package(pkg).build_path(typ)
+ FileUtils.rm path
+ FileUtils.rm path + '.map' if File.file? path + '.map'
end
FileUtils.cp 'package.json', File.join(build.build_dir, 'package.json')
View
2  faye.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.add_dependency "yajl-ruby", ">= 1.0.0"
s.add_development_dependency "compass", "~> 0.10.0"
- s.add_development_dependency "jake"
+ s.add_development_dependency "jake", ">= 1.1.1"
s.add_development_dependency "rake"
s.add_development_dependency "rspec", "~> 2.8.0"
s.add_development_dependency "rack-proxy"
View
1  jake.yml
@@ -9,6 +9,7 @@ builds:
min:
shrink_vars: true
private: true
+ source_map: src
packages:
Please sign in to comment.
Something went wrong with that request. Please try again.