diff --git a/.gitignore b/.gitignore index afdb7f93..218fc431 100644 --- a/.gitignore +++ b/.gitignore @@ -244,3 +244,4 @@ documentation.json /tests/VerifyExamples /_build +/log diff --git a/Shakefile.hs b/Shakefile.hs index ded26062..a020466f 100644 --- a/Shakefile.hs +++ b/Shakefile.hs @@ -9,3 +9,13 @@ main = shakeArgs shakeOptions {shakeFiles = "_build"} $ do need ["elm.json"] Stdout newConfig <- cmd "jq" "--indent" "4" ["{ root: \"../src\", tests: .[\"exposed-modules\"] }"] "elm.json" writeFileChanged out newConfig + + "log/axe-report.json" %> \out -> do + need ["public", "script/run-axe.sh", "script/axe-puppeteer.js"] + Stdout report <- cmd "script/run-axe.sh" + writeFileChanged out report + + "log/axe-report" %> \out -> do + need ["log/axe-report.json", "script/format-axe-report.sh", "script/axe-report.jq"] + Stdout report <- cmd "script/format-axe-report.sh" "log/axe-report.json" + writeFileChanged out report