|
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//_/-}\"' _ {} \\;", |
13 | | - "_hugo-dev": "npm run _hugo -- -e dev -DFE", |
| 13 | + "_hugo-dev": "npm run _hugo-npm-setup && npm run _hugo -- -e dev -DFE", |
| 14 | + "_hugo-npm-setup": "npm --prefix node_modules/docsy run postinstall", |
14 | 15 | "_hugo": "hugo --cleanDestinationDir", |
15 | 16 | "_ls-bad-filenames": "find assets content -name '*_*' ! -name '[_.]*'", |
16 | 17 | "_serve": "npm run _hugo-dev -- serve --minify --disableFastRender --renderToMemory", |
|
29 | 30 | "make:public": "git init public", |
30 | 31 | "postbuild:preview": "npm run _check:links--warn", |
31 | 32 | "postbuild:production": "npm run _check:links--warn", |
32 | | - "postinstall": "npm --prefix node_modules/docsy run postinstall", |
| 33 | + "postinstall": "npm run _hugo-npm-setup", |
33 | 34 | "precheck:links:all": "npm run build", |
34 | 35 | "precheck:links": "npm run build", |
| 36 | + "preupdate:docsy": "rm -f package-lock.json", |
35 | 37 | "random:text": "node scripts/random-text.js", |
36 | 38 | "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", |
37 | 39 | "serve": "npm run _serve", |
38 | 40 | "test": "npm list docsy && npm run check:format && npm run check:links", |
39 | | - "update:docsy:local": "npm install -D file:../docsy/docsy && npm list docsy", |
40 | | - "update:docsy:main": "npm install -D google/docsy#main && npm list docsy", |
| 41 | + "update:docsy:local": "npm run preupdate:docsy && npm install -D file:../docsy/docsy && npm list docsy", |
| 42 | + "update:docsy:main": "npm run preupdate:docsy && npm install -D google/docsy#main && npm list docsy", |
| 43 | + "update:docsy": "echo 'IMPORTANT: set DOCSY_VERSION to desired Docsy version'; npm install -D google/docsy#semver:${DOCSY_VERSION:-0.14.0} && npm list docsy", |
41 | 44 | "update:hugo": "npm install --save-exact -D hugo-extended@latest", |
42 | 45 | "update:packages": "npx npm-check-updates --dep 'prod,dev,optional,peer' -u" |
43 | 46 | }, |
44 | 47 | "devDependencies": { |
45 | 48 | "autoprefixer": "^10.4.21", |
46 | 49 | "cspell": "^9.0.2", |
47 | | - "docsy": "github:google/docsy#main", |
| 50 | + "docsy": "github:google/docsy#semver:0.14.0", |
48 | 51 | "hugo-extended": "0.155.3", |
49 | 52 | "postcss-cli": "^11.0.1", |
50 | 53 | "prettier": "^3.5.3" |
|
63 | 66 | "proseWrap": "always", |
64 | 67 | "singleQuote": true |
65 | 68 | }, |
66 | | - "spelling": "cSpell:ignore docsy hugo HTMLTEST netlify precheck postbuild -" |
| 69 | + "spelling": "cSpell:ignore docsy hugo HTMLTEST netlify precheck postbuild preupdate -" |
67 | 70 | } |
0 commit comments