-
Notifications
You must be signed in to change notification settings - Fork 978
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 5.5 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 5.5 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
{
"name": "docsy",
"version": "0.16.1-dev+002-over-main-62f3ca81",
"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": "npx prettier --check theme/assets *.md theme/i18n theme/scripts scripts tests",
"_check:links": "npm run -C docsy.dev _check:links",
"_check:markdown": "npx markdownlint-cli2",
"_commit:public": "npm run -C docsy.dev _commit:public",
"_cp:bs-scrollspy": "perl scripts/scrollspy-patch/extract-method.pl",
"_diff:check": "git diff --name-only --exit-code",
"_gen-chroma-styles": "bash -c scripts/gen-chroma-styles.sh",
"_clean:node_modules": "bash -c 'rm -rf {.,docsy.dev,theme}/{resources,node_modules,package-lock.json}'",
"_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 --",
"build": "npm run -C docsy.dev build --",
"check:afdocs:dev": "npm run -s _check:afdocs -- http://localhost:1313 | tee docsy.dev/content/en/docs/content/agent-support/afdocs-scorecard.txt",
"check:format": "npm list prettier && npm run _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",
"ci:post": "npm run fix-for-test && npm run _diff:check && npm run test:hugo-versions && npm run test:tooling && npm run test:fixture-site",
"ci:prepare": "npm run _prepare && npm run _diff:check",
"ci:test": "npm run ci:prepare && npm run check && npm run test:website && npm run ci:post",
"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:fixture-site",
"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:refcache": "npm run -C docsy.dev fix:refcache",
"fix": "npm run fix:format && npm run fix:markdown && npm run -C docsy.dev fix",
"install:theme-deps": "npm install --prefix theme --omit=dev --omit=peer --no-audit --no-fund",
"post-update": "echo; echo 'IMPORTANT! Run the following in case the ScrollSpy patch needs to be updated:\n npm run _prepare'; echo",
"postinstall": "npm run install:theme-deps",
"postupdate:dep": "npm run -s post-update",
"postupdate:packages": "npm run -s post-update",
"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:git-info": "npm run -s _spv -- --version \"$(scripts/get-build-id.sh)\"",
"set:version": "npm run -s _spv --",
"test:fixture-site": "node --test 'tests/fixture-site/**/*.test.mjs'",
"test:hugo-versions": "node --test tests/hugo-versions.test.mjs",
"test:lychee": "node --test 'tests/lychee/**/*.test.mjs'",
"test:site-equivalence": "node tests/site-equivalence/full-vs-shared.mjs --check",
"test:smoke": "node tests/smoke.test.mjs",
"test:tooling": "node --test scripts/npm-pack.test.mjs scripts/set-package-version/hugo-yaml.test.mjs scripts/set-package-version/index.test.mjs theme/scripts/gen-favicons/gen-favicons.test.mjs",
"test:website": "npm run -C docsy.dev test",
"test": "npm run fix-and-test",
"update:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest",
"update:goldens": "npm run -C docsy.dev update:goldens",
"update:packages:all": "npm run update:packages --workspaces --include-workspace-root",
"update:packages:not-hugo": "npm run update:packages -- -x hugo-extended",
"update:packages": "npx npm-check-updates -u",
"zzz": "echo 'This is just a placeholder that is the last script in this script collection.'"
},
"devDependencies": {
"@cspell/dict-fr-fr": "^2.3.2",
"jsdom": "^29.1.1",
"markdownlint-cli2": "^0.21.0",
"markdownlint-rule-link-pattern": "github:chalin/markdownlint-rule-link-pattern#v0.2.0",
"markdownlint-rule-no-shortcut-ref-link": "github:chalin/markdownlint-rule-no-shortcut-ref-link#v0.3.1",
"prettier": "^3.9.3"
},
"engines": {
"node": ">=24"
},
"spelling": "cSpell:ignore -"
}