|
13 | 13 | "_build": "npm run _hugo-dev --", |
14 | 14 | "_check:format": "npx prettier --check .", |
15 | 15 | "_check:links": "echo IMPLEMENTATION PENDING for check-links; echo", |
16 | | - "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", |
| 16 | + "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"", |
17 | 17 | "_diff:check": "git diff --name-only --exit-code", |
18 | 18 | "_fix:permissions": "chmod -R u+w public/* 2>/dev/null || true", |
19 | 19 | "_get:docsy": "hugo mod get github.com/google/docsy@v$npm_package_version", |
|
31 | 31 | "clean": "rm -Rf public/* resources", |
32 | 32 | "fix:format:diff": "npm run fix:format", |
33 | 33 | "fix:format": "npm run _check:format -- --write", |
| 34 | + "fix": "npm run fix:format", |
34 | 35 | "local": "npm run _local -- npm run", |
35 | 36 | "make:public": "git init -b main public", |
36 | 37 | "post_hugo": "npm run _fix:permissions", |
|
40 | 41 | "precheck:links": "npm run build", |
41 | 42 | "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", |
42 | 43 | "serve": "npm run _serve", |
43 | | - "test": "npm run check:links", |
| 44 | + "test-and-fix": "npm run fix && npm run test-only", |
| 45 | + "test-only": "npm run check:links", |
| 46 | + "test": "npm run test-and-fix", |
44 | 47 | "update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest", |
45 | 48 | "update:docsy:main": "hugo mod get -u github.com/google/docsy@main && hugo mod tidy", |
46 | 49 | "update:hugo-modules": "hugo mod get -u github.com/google/docsy && hugo mod tidy", |
|
0 commit comments