port axe reports to shake

This commit is contained in:
Brian Hicks 2020-10-27 17:34:00 -05:00
parent 3be1541586
commit 4f270a4985
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -244,3 +244,4 @@ documentation.json
/tests/VerifyExamples
/_build
/log

View File

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