Pārlūkot izejas kodu

Clean output directory before build

tags/v0.4.0
Adrian Short pirms 6 gadiem
vecāks
revīzija
b1b04d7c3a
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +2
    -2
      lib/petrify.rb
  2. +1
    -1
      lib/petrify/version.rb

+ 2
- 2
lib/petrify.rb Parādīt failu

@@ -43,9 +43,9 @@ module Petrify

def self.setup
# Recursively delete working directory to ensure no redundant files are left behind from previous builds.
# FileUtils.rm_rf(@working_dir)
# But preserve dot-files (especially .git directory)
FileUtils.rm_r(Dir.glob(File.join(@@working_dir, '*')))
Dir.mkdir(@@working_dir) unless File.directory?(@@working_dir)
# Dir.chdir(@working_dir)

# Copy `public` dir to output dir
FileUtils.copy_entry('public', @@working_dir)


+ 1
- 1
lib/petrify/version.rb Parādīt failu

@@ -1,3 +1,3 @@
module Petrify
VERSION = "0.1.0"
VERSION = "0.2.0"
end

Notiek ielāde…
Atcelt
Saglabāt