From 3b2e2a12f85b5ebf4e495894aee894e360764c0f Mon Sep 17 00:00:00 2001 From: Ju Liu Date: Tue, 15 Mar 2022 17:29:20 +0000 Subject: [PATCH] Add shake rule to run elm-review --- Shakefile.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shakefile.hs b/Shakefile.hs index 35911b05..af9e832d 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -48,6 +48,7 @@ main = do "tests/elm-verify-examples.json", "log/elm-verify-examples.txt", "log/elm-test.txt", + "log/elm-review.txt", "log/axe-report.txt", "log/percy-tests.txt", "log/forbidden-imports-report.txt", @@ -83,6 +84,11 @@ main = do need (["package.json", "elm.json"] ++ elmFiles) cmd (WithStdout True) (FileStdout out) "elm-test" + "log/elm-review.txt" %> \out -> do + elmFiles <- getDirectoryFiles "." ["**/*.elm"] + need (["package.json", "elm.json"] ++ elmFiles) + cmd (WithStdout True) (FileStdout out) "elm-review" + "log/elm-verify-examples.txt" %> \out -> do elmFiles <- getDirectoryFiles "." ["src/**/*.elm"] need (["tests/elm-verify-examples.json"] ++ elmFiles)