Add shake rule to run elm-review

This commit is contained in:
Ju Liu 2022-03-15 17:29:20 +00:00
parent 7d457f3b4d
commit 3b2e2a12f8

View File

@ -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)