diff --git a/package.json b/package.json index afdfe322e..3184ff764 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "_cd:docs": "cd userguide &&", "_check:format": "npx prettier --check .??* *.md", "_cp:bs-rfs": "npx cpy 'node_modules/bootstrap/scss/vendor/*' assets/_vendor/bootstrap/scss/", + "_diff:check": "git diff --name-only --exit-code", "_mkdir:hugo-mod": "npx mkdirp ../github.com/FortAwesome/Font-Awesome ../github.com/twbs/bootstrap", "_prebuild": "npm run _cp:bs-rfs", "_test:docs": "npm run cd:docs test", @@ -29,7 +30,7 @@ "preserve": "npm run _prebuild", "pretest": "npm run _prebuild", "serve": "npm run cd:docs serve", - "test:all": "npm run _test:docs && npm run check", + "test:all": "npm run _test:docs && npm run check && npm run fix:format && npm run _diff:check", "test": "npm run _test:docs", "update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest", "update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest"