From fedd932cb0a7d9318832129313e5099985826741 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 28 Oct 2020 05:56:02 -0500 Subject: [PATCH] add clean rule --- Shakefile.hs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Shakefile.hs b/Shakefile.hs index c3361588..86a79ae8 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -54,3 +54,10 @@ main = need ["package.json", "package-lock.json"] cmd_ "npm" "install" writeFileChanged out "1" + + phony "clean" $ do + removeFilesAfter "elm-stuff" ["//*"] + removeFilesAfter "log" ["//*"] + removeFilesAfter "node_modules" ["//*"] + removeFilesAfter "public" ["//*"] + removeFilesAfter "styleguide-app" ["elm.js", "bundle.js", "elm-stuff"]