add clean rule

This commit is contained in:
Brian Hicks 2020-10-28 05:56:02 -05:00
parent 574a8c8c1f
commit fedd932cb0

View File

@ -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"]