mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-23 08:27:11 +03:00
port axe reports to shake
This commit is contained in:
parent
3be1541586
commit
4f270a4985
1
.gitignore
vendored
1
.gitignore
vendored
@ -244,3 +244,4 @@ documentation.json
|
||||
/tests/VerifyExamples
|
||||
|
||||
/_build
|
||||
/log
|
||||
|
10
Shakefile.hs
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user