forked from alexch/deck.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (26 loc) · 771 Bytes
/
Rakefile
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
29
30
31
begin
require 'jasmine'
load 'jasmine/tasks/jasmine.rake'
rescue LoadError => e
p e
puts e.backtrace.join("\n\t")
task :jasmine do
abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
end
end
require 'rspec/core/rake_task'
task :default => [:spec] #, :'jasmine:ci']
desc "run ruby tests"
RSpec::Core::RakeTask.new do |task|
task.pattern = "spec/**/*_spec.rb"
task.rspec_opts = [ '-f documentation', '--color', '--backtrace']
task.verbose = false
end
# gem "bundler"
require "bundler/gem_tasks"
desc "update deck.js source from ~/dev/deck.js"
task :update_deck do
Dir.chdir(File.dirname(__FILE__)) do
sh "rm -rf public/deck.js/; cp -r ~/dev/deck.js public/; rm -rf public/deck.js/.git"
end
end