Skip to content

Instantly share code, notes, and snippets.

@mihir0x69
Created July 2, 2018 16:53
Show Gist options
  • Save mihir0x69/e70075f1b3e28f0c3b825c8b5796e7af to your computer and use it in GitHub Desktop.
Save mihir0x69/e70075f1b3e28f0c3b825c8b5796e7af to your computer and use it in GitHub Desktop.
Write "clean" task
let appDirectory = Path.Combine("src", "PaketDemo")
let directoriesToClean () =
DirectoryInfo.getSubDirectories (DirectoryInfo.ofPath "./src/")
|> Array.collect (fun x -> [|Path.Combine(x.FullName, "bin"); Path.Combine(x.FullName, "obj")|])
Target.create "Clean" (fun _ ->
Trace.log "--- Cleaning stuff ---"
Shell.cleanDirs (directoriesToClean())
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment