|
6 | 6 | "_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)", |
7 | 7 | "_check:links:internal": "npm run _check:links -- HTMLTEST_ARGS='--skip-external'", |
8 | 8 | "_check:links": "make --keep-going check-links", |
9 | | - "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", |
| 9 | + "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"", |
10 | 10 | "_diff:check": "git diff --name-only --exit-code", |
11 | 11 | "_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1", |
12 | 12 | "_filenames-to-kebab-case": "find assets content -name '*_*' ! -name '[_.]*' -exec sh -c 'mv \"$1\" \"${1//_/-}\"' _ {} \\;", |
|
15 | 15 | "_hugo": "hugo --cleanDestinationDir", |
16 | 16 | "_ls-bad-filenames": "find assets content -name '*_*' ! -name '[_.]*'", |
17 | 17 | "_serve": "npm run _hugo-dev -- serve --minify --disableFastRender --renderToMemory", |
18 | | - "_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy'; rm -f package-lock.json", |
| 18 | + "_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy, removing package-lock.json'; rm -f package-lock.json", |
19 | 19 | "build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"", |
20 | 20 | "build:production": "npm run _hugo -- --minify", |
21 | 21 | "build": "npm run _build --", |
|
34 | 34 | "postinstall": "npm run _hugo-npm-setup", |
35 | 35 | "precheck:links:all": "npm run build", |
36 | 36 | "precheck:links": "npm run build", |
37 | | - "preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set DOCSY_VERSION to desired Docsy version'", |
| 37 | + "preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set VERSION to desired Docsy version'", |
38 | 38 | "random:text": "node scripts/random-text.js", |
39 | 39 | "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", |
40 | 40 | "serve": "npm run _serve", |
41 | 41 | "test": "npm list docsy && npm run check:format && npm run check:links", |
42 | 42 | "update:docsy:local": "npm run preupdate:docsy && npm install -D file:../docsy/docsy && npm list docsy", |
43 | | - "update:docsy:main": "npm run preupdate:docsy && npm install -D google/docsy#main && npm list docsy", |
44 | | - "update:docsy": "DOCSY_VERSION=${DOCSY_VERSION:-0.14.0} npm install -D google/docsy#semver:$DOCSY_VERSION && npm list docsy", |
| 43 | + "update:docsy:main": "VERSION=main npm run update:docsy", |
| 44 | + "update:docsy": "npm install -D google/docsy#${VERSION:-semver:0.14.1} && npm list docsy", |
45 | 45 | "update:hugo": "npm install --save-exact -D hugo-extended@latest", |
46 | 46 | "update:packages": "npx npm-check-updates --dep 'prod,dev,optional,peer' -u" |
47 | 47 | }, |
48 | 48 | "devDependencies": { |
49 | 49 | "autoprefixer": "^10.4.21", |
50 | 50 | "cspell": "^9.0.2", |
51 | | - "docsy": "github:google/docsy#semver:", |
| 51 | + "docsy": "github:google/docsy#semver:0.14.1", |
52 | 52 | "hugo-extended": "0.155.3", |
53 | 53 | "postcss-cli": "^11.0.1", |
54 | 54 | "prettier": "^3.5.3" |
|
0 commit comments