Better output for "prettier" test (#2014)

* Better prettier output

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>

* Adding a new test, to preserve the current behavior.

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>

* Fix command

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2021-12-22 15:01:10 -03:00
committed by GitHub
parent 42a7bbe7d3
commit d037066d83
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -31,4 +31,4 @@ jobs:
run: npm ci
- name: Run tests
run: npm test
run: npm run testpr
+2 -1
View File
@@ -20,7 +20,8 @@
"prettier:fix": "prettier --write \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**/*.js\"",
"xo": "xo",
"xo:fix": "npm run xo -- --fix",
"test": "npm run prettier:check && npm run xo"
"test": "npm run prettier:check && npm run xo",
"testpr": "npm run prettier:fix && git diff --ws-error-highlight=all --color=always --exit-code && npm run xo"
},
"devDependencies": {
"autoprefixer": "^10.4.0",