|
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", |
| 18 | + "_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy'; rm -f package-lock.json", |
17 | 19 | "build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"", |
18 | 20 | "build:production": "npm run _hugo -- --minify", |
19 | 21 | "build": "npm run _build --", |
|
29 | 31 | "make:public": "git init public", |
30 | 32 | "postbuild:preview": "npm run _check:links--warn", |
31 | 33 | "postbuild:production": "npm run _check:links--warn", |
32 | | - "postinstall": "npm --prefix node_modules/docsy run postinstall", |
| 34 | + "postinstall": "npm run _hugo-npm-setup", |
33 | 35 | "precheck:links:all": "npm run build", |
34 | 36 | "precheck:links": "npm run build", |
| 37 | + "preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set DOCSY_VERSION to desired Docsy version'", |
35 | 38 | "random:text": "node scripts/random-text.js", |
36 | 39 | "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", |
37 | 40 | "serve": "npm run _serve", |
38 | 41 | "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", |
| 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", |
41 | 45 | "update:hugo": "npm install --save-exact -D hugo-extended@latest", |
42 | 46 | "update:packages": "npx npm-check-updates --dep 'prod,dev,optional,peer' -u" |
43 | 47 | }, |
44 | 48 | "devDependencies": { |
45 | 49 | "autoprefixer": "^10.4.21", |
46 | 50 | "cspell": "^9.0.2", |
47 | | - "docsy": "github:google/docsy#main", |
| 51 | + "docsy": "github:google/docsy#semver:", |
48 | 52 | "hugo-extended": "0.155.3", |
49 | 53 | "postcss-cli": "^11.0.1", |
50 | 54 | "prettier": "^3.5.3" |
|
63 | 67 | "proseWrap": "always", |
64 | 68 | "singleQuote": true |
65 | 69 | }, |
66 | | - "spelling": "cSpell:ignore docsy hugo HTMLTEST netlify precheck postbuild -" |
| 70 | + "spelling": "cSpell:ignore docsy hugo HTMLTEST netlify precheck postbuild preupdate -" |
67 | 71 | } |
0 commit comments