-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
30 lines (24 loc) · 912 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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
namespace :tribute do
namespace :assets do
desc 'Update Tribute.'
task update: :clean do
version = Tribute::VERSION.sub(/.\d+$/, '')
sh 'git clone [email protected]:zurb/tribute.git tribute_src'
sh "cd tribute_src && git checkout tags/#{version}"
sh 'cp -R tribute_src/dist/tribute.css vendor/assets/stylesheets/tribute/index.css'
sh 'cp -R tribute_src/dist/tribute.js vendor/assets/javascripts/tribute/index.js'
puts "\n----------------------\n-- Tribute Updated! --\n----------------------\n"
end
desc 'Remove previous Tribute assets.'
task :clean do
sh 'rm -rf vendor'
sh 'rm -rf tribute_src'
sh 'mkdir -p vendor/assets/stylesheets/tribute/'
sh 'mkdir -p vendor/assets/javascripts/tribute/'
end
end
end