forked from crowdint/rails3-jquery-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (23 loc) · 666 Bytes
/
Rakefile
File metadata and controls
28 lines (23 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
require 'rcov/rcovtask'
task :default => [:uglify, :test]
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
task :uglify do
require 'uglifier'
file_folder = "lib/generators/templates"
File.open("#{file_folder}/autocomplete-rails.js", "w") do |f|
f << Uglifier.compile(File.read("#{file_folder}/autocomplete-rails-uncompressed.js"))
end
end
Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.rcov_opts = %w{--exclude \/gems\/}
t.verbose = true
end