build clean should ignore dotfiles
This commit is contained in:
parent
12ca8f0caf
commit
03f17ff551
|
@ -1,3 +1,7 @@
|
|||
2.0.13.1
|
||||
====
|
||||
build --clean shouldn't remove dotfiles
|
||||
|
||||
2.0.13
|
||||
====
|
||||
middleman build --clean keeps the build directory clean of leftover files
|
||||
|
|
|
@ -68,6 +68,7 @@ module Middleman
|
|||
def queue_current_paths_from(destination)
|
||||
@cleaning_queue = []
|
||||
Find.find(destination) do |path|
|
||||
next if path.match(/\/\./)
|
||||
unless path == destination
|
||||
@cleaning_queue << path.sub(destination, destination[/([^\/]+?)$/])
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module Middleman
|
||||
VERSION = "2.0.13"
|
||||
VERSION = "2.0.13.1"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue