lib/jets/builders/tidy.rb
# We clean out ignored files pretty aggressively. So provide
# a way for users to keep files from being cleaned out.
We clean out ignored files pretty aggressively. So provide
a way for users to keep files from being cleaned out.
We clean out ignored files pretty aggressively . So provide a way for users to keep files from being cleaned out .
def jetskeep
      defaults = %w[.bundle bundled pack handlers public/assets]
      path = "#{@project_root}/.jetskeep"
      return defaults unless File.exist?(path)
      keep = IO.readlines(path)
      keep = keep.map {|i| i.strip}.reject { |i| i =~ /^#/ || i.empty? }
      (defaults + keep).uniq
    end
def jetskeep defaults = %w[ .bundle bundled pack handlers public/assets ] path = "#{@project_root}/.jetskeep" return defaults unless File . exist? ( path ) keep = IO . readlines ( path ) keep = keep . map { | i | i . strip } . reject { | i | i =~ / ^# / || i . empty? } ( defaults + keep ) . uniq end
We clean out ignored files pretty aggressively.
We clean out ignored files pretty aggressively .