Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (34 sloc) 1.068 kb
31ac374 @lautis Initial commit to uglifier.
lautis authored
1 require 'rubygems'
2 require 'bundler'
3 begin
4 Bundler.setup(:default, :development)
5 rescue Bundler::BundlerError => e
6 $stderr.puts e.message
7 $stderr.puts "Run `bundle install` to install missing gems"
8 exit e.status_code
9 end
10 require 'rake'
11
12 require 'jeweler'
13 Jeweler::Tasks.new do |gem|
14 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15 gem.name = "uglifier"
16 gem.summary = %Q{Ruby wrapper for UglifyJS JavaScript compressor}
17 gem.email = "lautis@gmail.com"
18 gem.homepage = "http://github.com/lautis/uglifier"
19 gem.authors = ["Ville Lautanala"]
20 end
21 Jeweler::RubygemsDotOrgTasks.new
22
23 require 'rspec/core'
24 require 'rspec/core/rake_task'
25 RSpec::Core::RakeTask.new(:spec) do |spec|
26 spec.pattern = FileList['spec/**/*_spec.rb']
27 end
28
29 task :default => :spec
30
13ccb0e @lautis Fix rdoc deprecation warning
lautis authored
31 require 'rdoc/task'
31ac374 @lautis Initial commit to uglifier.
lautis authored
32 Rake::RDocTask.new do |rdoc|
33 version = File.exist?('VERSION') ? File.read('VERSION') : ""
34
35 rdoc.rdoc_dir = 'rdoc'
36 rdoc.title = "uglifier #{version}"
37 rdoc.rdoc_files.include('README*')
38 rdoc.rdoc_files.include('lib/**/*.rb')
39 end
Something went wrong with that request. Please try again.