Skip to content

Commit

Permalink
adding diff checks
Browse files Browse the repository at this point in the history
Signed-off-by: Nate W <[email protected]>
  • Loading branch information
nate-double-u committed Aug 22, 2024
1 parent 0b0d3ea commit 106ae83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"scripts": {
"_build": "hugo --cleanDestinationDir -e dev -DFE",
"_check-links": "make check-links",
"_diff:check": "git diff --name-only --exit-code",
"_diff:fail": "git diff --name-only --exit-code || exit 1",
"_serve:hugo": "hugo serve -DFE --minify",
"_serve": "netlify dev -c \"npm run _serve:hugo\" --framework hugo",
"build:preview": "set -x && npm run _build -- --minify --baseURL \"${DEPLOY_PRIME_URL:-/}\"",
Expand All @@ -10,6 +12,8 @@
"check-links:all": "HTMLTEST_ARGS= npm run _check-links",
"check-links": "npm run _check-links",
"clean": "make clean",
"diff:check": "npm run _diff:check || (echo; echo 'WARNING: the files above have not been committed'; echo)",
"diff:fail": "npm run _diff:check || (echo; echo 'ERROR: the files above have changed. Locally rerun `npm run test-and-fix` and commit changes'; echo; exit 1)",
"log:check:links": "npm run check-links | tee tmp/build-log.txt",
"postbuild:preview": "npm run _check-links",
"postbuild:production": "npm run _check-links",
Expand Down

0 comments on commit 106ae83

Please sign in to comment.