Don't put bootstrapped files from examples in the gem.
This commit is contained in:
parent
5e680ad27b
commit
12ee5d1ab0
12
Rakefile
12
Rakefile
@ -131,6 +131,18 @@ task :examples do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
namespace :examples do
|
||||||
|
desc "clean up the example directories"
|
||||||
|
task :clean do
|
||||||
|
puts "Cleaning Examples"
|
||||||
|
Dir.glob('examples/*/clean.rb').each do |cleaner|
|
||||||
|
load cleaner
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task "gemspec:generate" => "examples:clean"
|
||||||
|
|
||||||
namespace :git do
|
namespace :git do
|
||||||
task :clean do
|
task :clean do
|
||||||
sh "git", "clean", "-fdx"
|
sh "git", "clean", "-fdx"
|
||||||
|
2
examples/compass/clean.rb
Normal file
2
examples/compass/clean.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
require 'fileutils'
|
||||||
|
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"
|
2
examples/ninesixty/clean.rb
Normal file
2
examples/ninesixty/clean.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
require 'fileutils'
|
||||||
|
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"
|
2
examples/susy/clean.rb
Normal file
2
examples/susy/clean.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
require 'fileutils'
|
||||||
|
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"
|
2
examples/yui/clean.rb
Normal file
2
examples/yui/clean.rb
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
require 'fileutils'
|
||||||
|
FileUtils.rm_rf "#{File.dirname(__FILE__)}/extensions"
|
Loading…
Reference in New Issue
Block a user