mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
@@ -31,4 +31,4 @@ jobs:
|
||||
run: npm ci
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
run: npm run testpr
|
||||
|
||||
+2
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user