-
Notifications
You must be signed in to change notification settings - Fork 978
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 7.15 KB
/
Copy pathpackage.json
File metadata and controls
125 lines (125 loc) · 7.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "docsy",
"version": "0.17.1-dev",
"repository": "github:google/docsy",
"homepage": "https://www.docsy.dev",
"license": "Apache-2.0",
"private": true,
"bin": {
"gen-favicons": "theme/scripts/gen-favicons/cli.mjs"
},
"files": [
"theme",
"!theme/LICENSE",
"!theme/images",
"!theme/node_modules",
"theme/package-lock.json",
"!theme/scripts/**/*.test.mjs"
],
"workspaces": [
"docsy.dev",
"theme"
],
"scripts": {
"__spv": "node scripts/set-package-version/index.mjs",
"_check:afdocs": "npm run -s -C docsy.dev _check:afdocs",
"_check:format": "prettier --check theme/assets *.md theme/i18n theme/scripts scripts tests",
"_check:links": "npm run -C docsy.dev _check:links",
"_check:markdown": "markdownlint-cli2",
"_commit:public": "npm run -C docsy.dev _commit:public",
"_cp:bs-scrollspy": "perl scripts/scrollspy-patch/extract-method.pl",
"_gen-chroma-styles": "bash -c scripts/gen-chroma-styles.sh",
"_install:safe:post": "node scripts/rebuild-hugo-extended.mjs && npm run install:theme-deps",
"_install:safe:pre": "npm ci --ignore-scripts --no-audit --no-fund",
"_netlify:prepare": "npm run -s is:clean && npm run install:safe && npm run -s is:clean && npm run -s _netlify:set-build-id",
"_netlify:set-build-id": "test -n \"$COMMIT_REF\" || { echo 'COMMIT_REF is not set' >&2; exit 1; } && npm run -s set:version -- --id \"$(echo \"$COMMIT_REF\" | cut -c1-8)\"",
"_clean:node_modules": "bash -c 'rm -rf {.,docsy.dev,theme}/{resources,node_modules}'",
"_prepare:scrollspy-patch": "npm run _cp:bs-scrollspy && bash scripts/scrollspy-patch/apply-patch.sh && perl scripts/scrollspy-patch/update-patch-js.pl",
"_prepare": "npm run _prepare:scrollspy-patch && npm run _refresh-forward-sass-var && npm run _gen-chroma-styles",
"_refresh-forward-sass-var": "bash -c scripts/refresh-sass-variables.pl",
"_serve": "npm run -C docsy.dev _serve --",
"_spv:example": "echo TBC - npm run -s __spv docsy.dev/config/example/params.yaml --",
"_spv": "npm run -s __spv docsy.dev/config/*/params.yaml --",
"_sync:theme-lock": "npm install --prefix theme --package-lock-only --ignore-scripts",
"_test:fix-clean": "npm run fix-for-test && npm run -s is:clean",
"_test:full:common": "npm run _test:fix-clean && npm run test:repo",
"_test:full:pre": "npm run _prepare && npm run -s is:clean",
"_test:supply-chain": "node --test tests/supply-chain-audit.test.mjs",
"approve:hugo": "npm run _install:safe:pre && npm approve-scripts --allow-scripts-pin hugo-extended && npm run -s _test:supply-chain && npm run _install:safe:post",
"build": "npm run -C docsy.dev build --",
"check:afdocs:dev": "npm run -s _check:afdocs -- http://localhost:1313 | awk '/./{if(s)printf \"%s\",b; b=\"\"; print; s=1; next} s{b=b RS}' | tee docsy.dev/content/en/docs/content/agent-support/afdocs-scorecard.txt",
"check:format": "npm list prettier && npm run _check:format && npm run -s -C docsy.dev check:format || (echo '[help] Run: npm run fix:format'; exit 1)",
"check:links": "npm run -C docsy.dev check:links",
"check:markdown": "npm run _check:markdown -- '**/*.md'",
"check": "npm run check:format && npm run check:markdown",
"doc-rooted": "TD_BUILD_CTX=doc-rooted npm run",
"fix-and-test": "echo 'RUNNING most FIXES AND TESTS...'; npm run fix-for-test && npm run test:website && npm run test:repo",
"fix-for-test": "npm run fix:format && npm run fix:markdown && npm run -C docsy.dev fix",
"fix:format:diff": "npm run fix:format",
"fix:format": "npm run -s _check:format -- --write && echo && npm run -s -C docsy.dev fix:format",
"fix:markdown": "npm run check:markdown -- --fix",
"fix:link-cache": "npm run -C docsy.dev fix:link-cache",
"fix:refcache": "npm run -C docsy.dev fix:refcache",
"fix": "npm run fix:format && npm run fix:markdown && npm run -C docsy.dev fix",
"hugo": "hugo",
"install:safe": "npm run _install:safe:pre && npm run _install:safe:post",
"install:theme-deps": "npm ci --prefix theme --ignore-scripts --omit=dev --omit=peer --no-audit --no-fund",
"install:browser": "node node_modules/puppeteer/install.mjs",
"is:clean": "bash -c 'o=$(git status --porcelain -uall); echo \"$o\"; [ -z \"$o\" ]'",
"link-cache": "npm run -C docsy.dev link-cache --",
"refcache": "npm run -C docsy.dev refcache --",
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
"serve": "npm run -C docsy.dev serve --",
"set:version:example:git-info": "npm run set:version:example -- --version \"$(scripts/get-build-id.sh)\"",
"set:version:example": "cd ../docsy-example && node ../docsy/scripts/set-package-version/index.mjs",
"set:version": "npm run -s _spv --",
"test:full": "npm run _test:full:pre && npm run check && npm run test:website && npm run _test:full:common",
"test:lychee": "node --test 'tests/lychee/**/*.test.mjs'",
"test:repo": "node --test 'tests/*.test.mjs' 'tests/fixture-site/**/*.test.mjs' 'scripts/**/*.test.mjs' 'theme/scripts/**/*.test.mjs'",
"test:site-equivalence": "node tests/site-equivalence/full-vs-shared.mjs --check",
"test:smoke": "node tests/smoke.mjs",
"test:visual": "node --test 'tests/visual/*.test.mjs'",
"test:website": "npm run -C docsy.dev test",
"test": "npm run fix-and-test",
"update::post": "echo; echo 'IMPORTANT! Run the following in case the ScrollSpy patch needs to be updated:\n npm run _prepare'; echo",
"update:goldens": "npm run -C docsy.dev update:goldens && npm run update:markup-goldens && npm run update:scripts-goldens",
"update:hugo": "node scripts/update-dep.mjs hugo-extended -D",
"update:markup-goldens": "node tests/fixture-site/update-markup-goldens.mjs",
"update:scripts-goldens": "node tests/fixture-site/update-scripts-goldens.mjs",
"update:packages:all": "npm run update:packages --workspaces --include-workspace-root",
"update:packages": "bash -c 'npm-check-updates -u -x hugo-extended \"$@\" && npm run -s update::post' -",
"update:theme-dep": "bash -c 'node scripts/update-dep.mjs \"$1\" --workspace=theme \"$2\" && npm run -s _sync:theme-lock && npm run -s install:theme-deps && npm run -s update::post' -",
"update:visual-goldens": "UPDATE_VISUAL_GOLDENS=1 npm run test:visual",
"update:visual-goldens:linux": "node tests/visual/update-goldens-linux.mjs",
"wt": "HUGO_THEME=$(basename \"$PWD\")/theme npm run",
"zzz": "echo 'This is just a placeholder that is the last script in this script collection.'"
},
"devDependencies": {
"@cspell/dict-fr-fr": "2.3.2",
"@pchalin/markdownlint-rule-link-pattern": "0.3.0",
"hugo-extended": "0.164.0",
"jsdom": "30.0.1",
"markdownlint-cli2": "0.23.2",
"markdownlint-rule-no-shortcut-ref-link": "0.4.0",
"pixelmatch": "7.2.0",
"pngjs": "7.0.0",
"prettier": "3.9.6",
"puppeteer": "25.9.0",
"sass-embedded": "1.103.1",
"yaml": "2.9.0"
},
"engines": {
"node": ">=24",
"npm": ">=11.18.0"
},
"overrides": {
"adm-zip": "^0.6.0",
"smol-toml": "^1.7.1"
},
"spelling": "cSpell:ignore uall -",
"allowScripts": {
"@parcel/watcher": false,
"puppeteer": false,
"hugo-extended@0.164.0": true
}
}