Ignore .gitkeep and .DS_Store files

This commit is contained in:
Sami Samhuri 2019-12-01 22:46:54 -08:00
parent c2c28953ec
commit c4f7af1684

View file

@ -60,6 +60,11 @@ public final class Generator {
func renderOrCopyFile(url fileURL: URL, targetDir: URL) throws {
let filename = fileURL.lastPathComponent
guard filename != ".DS_Store", filename != ".gitkeep" else {
print("Ignoring hidden file \(filename)")
return
}
let ext = filename.split(separator: ".").last!
switch ext {
case "less":