Skip to content

Commit c0735a3

Browse files
author
Tom Pearson
committed
split npm scripts
1 parent 2982750 commit c0735a3

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

a11y-report.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"total":2,"passes":1,"errors":2,"results":{"http://localhost:5000/good.html":[],"http://localhost:5000/bad.html":[{"code":"WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.EmptyTitle","type":"error","typeCode":1,"message":"The title element in the head section should be non-empty.","context":"<title></title>","selector":"html > head > title","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle3.Guideline3_1.3_1_1.H57.3.Lang","type":"error","typeCode":1,"message":"The language specified in the lang attribute of the document element does not appear to be well-formed.","context":null,"selector":"","runner":"htmlcs","runnerExtras":{}}]}}
1+
{"total":2,"passes":1,"errors":3,"results":{"http://localhost:5000/good.html":[],"http://localhost:5000/bad.html":[{"code":"WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.EmptyTitle","type":"error","typeCode":1,"message":"The title element in the head section should be non-empty.","context":"<title></title>","selector":"html > head > title","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle3.Guideline3_1.3_1_1.H57.3.Lang","type":"error","typeCode":1,"message":"The language specified in the lang attribute of the document element does not appear to be well-formed.","context":null,"selector":"","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail","type":"error","typeCode":1,"message":"This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 2.77:1. Recommendation: change text colour to #fff.","context":"<p class=\"bad-contrast\">\n This page should fail acce...</p>","selector":"html > body > p","runner":"htmlcs","runnerExtras":{}}]}}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "serve.js",
66
"scripts": {
77
"serve": "sirv site --single --port 5000 & wait-on http://localhost:5000/good.html",
8-
"a11y": "npm run serve && pa11y-ci --config .pa11yrc --json > a11y-report.json"
8+
"a11y": "pa11y-ci --config .pa11yrc --json > a11y-report.json",
9+
"test": "npm run serve && npm run a11y"
910
},
1011
"author": "",
1112
"license": "ISC",

0 commit comments

Comments
 (0)