-
Notifications
You must be signed in to change notification settings - Fork 328
Expand file tree
/
Copy pathpackage.json
More file actions
170 lines (170 loc) · 9.51 KB
/
Copy pathpackage.json
File metadata and controls
170 lines (170 loc) · 9.51 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"private": true,
"name": "@influxdata/docs-site",
"version": "1.0.0",
"description": "InfluxDB documentation",
"license": "MIT",
"exports": {
"./markdown-converter": "./scripts/rust-markdown-converter/index.js",
"./product-mappings": "./dist/utils/product-mappings.js"
},
"bin": {
"docs": "scripts/docs-cli/docs-cli.js"
},
"resolutions": {
"serialize-javascript": "^6.0.2",
"tar": "7.5.16",
"lodash-es": "4.18.1",
"dompurify": ">=3.3.2",
"gray-matter/js-yaml": "4.2.0",
"basic-ftp": "5.3.1",
"ws": "8.21.0",
"yaml": "2.9.0",
"**/anymatch/picomatch": "2.3.2",
"**/readdirp/picomatch": "2.3.2",
"**/tinyglobby/picomatch": "4.0.4",
"**/glob/minimatch/brace-expansion": "5.0.6",
"**/@typescript-eslint/typescript-estree/minimatch/brace-expansion": "5.0.6",
"**/eslint-plugin-import/minimatch/brace-expansion": "1.1.13",
"**/eslint-plugin-jsx-a11y/minimatch/brace-expansion": "1.1.13"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@evilmartians/lefthook": "^1.7.1",
"@types/js-yaml": "^4.0.9",
"autoprefixer": ">=10.2.5",
"cypress": "^15.17.0",
"eslint": "^10.5.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.6.17",
"eslint-plugin-jsx-a11y": "^6.10.2",
"globals": "^15.14.0",
"hugo-extended": "0.156.0",
"lucide-static": "^1.28.0",
"pixelmatch": "^6.0.0",
"pngjs": "^7.0.0",
"postcss": ">=8.5.23",
"postcss-cli": ">=9.1.0",
"prettier": "^3.2.5",
"prettier-plugin-sql": "^0.18.0",
"puppeteer": "^24.35.0",
"remark": "^15.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.61.1",
"unified": "^11.0.5",
"winston": "^3.16.0"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"axios": "^1.18.0",
"dompurify": ">=3.3.2",
"glob": "^13.0.6",
"gray-matter": "^4.0.3",
"jquery": "^3.7.1",
"js-cookie": "^3.0.7",
"js-yaml": "^4.3.2",
"lefthook": "^1.10.10",
"markdown-link": "^0.1.1",
"mermaid": "^11.16.1",
"p-limit": "^5.0.0",
"playwright": "^1.58.1",
"vanillajs-datepicker": "^1.3.4"
},
"packageManager": "yarn@1.22.22",
"scripts": {
"preinstall": "node scripts/check-package-manager.js",
"postinstall": "node scripts/setup-local-bin.js && node scripts/build-rust-converter.js",
"docs": "node scripts/docs-cli/docs-cli.js",
"docs:create": "node scripts/docs-cli/docs-cli.js create",
"docs:edit": "node scripts/docs-cli/docs-cli.js edit",
"docs:placeholders": "node scripts/docs-cli/docs-cli.js placeholders",
"docs:add-placeholders": "node scripts/docs-cli/docs-cli.js add-placeholders",
"docs:audit": "node scripts/docs-cli/docs-cli.js audit",
"docs:release-notes": "node scripts/docs-cli/docs-cli.js release-notes",
"build:api-docs": "cd api-docs && bash generate-api-docs.sh",
"build:api-docs:scripts": "tsc --project api-docs/scripts/tsconfig.json",
"build:pytest:image": "docker build -t influxdata/docs-pytest:latest -f Dockerfile.pytest .",
"build:agent:instructions": "node ./helper-scripts/build-agent-instructions.js",
"validate:agent-instructions": "node ./helper-scripts/validate-agent-instructions.js",
"verify:changed": "node scripts/verify-changed.mjs",
"test:verify-changed": "node --test scripts/__tests__/verify-changed.test.mjs",
"test:agent-instruction-limits": "node --test helper-scripts/__tests__/agent-instruction-limits.test.mjs",
"build:ts": "tsc --project tsconfig.json --outDir dist",
"build:ts:watch": "tsc --project tsconfig.json --outDir dist --watch",
"build:md": "node scripts/build-llm-markdown.js",
"build:md-sitemap": "node scripts/build-md-sitemap.js",
"build:llms-txt": "node scripts/build-llms-txt.js",
"build:ai-artifacts": "node scripts/build-ai-artifacts.js",
"build:llms-full": "node scripts/build-llms-full-txt.js",
"check:md-coherence": "node scripts/check-md-alternate-coherence.js",
"check:jsonld-links": "node scripts/check-jsonld-links.js",
"test:build-llms-full": "node --test scripts/__tests__/build-llms-full-txt.test.mjs",
"test:corpus-paths": "node --test scripts/__tests__/corpus-paths.test.mjs",
"test:build-md": "node --test scripts/__tests__/build-llm-markdown.test.mjs scripts/__tests__/provenance.test.mjs",
"test:markdown-parity": "node --test scripts/__tests__/markdown-parity.test.mjs",
"test:markdown-completeness": "node --test scripts/__tests__/markdown-completeness.test.mjs",
"test:jsonld-links": "node --test scripts/__tests__/check-jsonld-links.test.mjs",
"deploy:staging": "sh scripts/deploy-staging.sh",
"deploy:production": "bash scripts/deploy-production.sh",
"lint": "LEFTHOOK_EXCLUDE=test lefthook run pre-commit && LEFTHOOK_EXCLUDE=test lefthook run pre-push",
"pre-commit": "lefthook run pre-commit",
"test": "echo \"Run 'yarn test:e2e', 'yarn test:codeblocks:all', or a specific test command. For link validation, use the link-checker binary (see DOCS-TESTING.md). The e2e command takes a glob of file paths to test. Some commands run automatically during the git pre-commit and pre-push hooks.\" && exit 0",
"test:codeblocks": "echo \"Run a specific codeblocks test command (e.g., yarn test:codeblocks:influxdb3_core)\" && exit 0",
"test:codeblocks:all": "docker compose --profile test up",
"test:codeblocks:default": "yarn test:codeblocks:influxdb3_core & P1=$! ; yarn test:codeblocks:telegraf & P2=$! ; wait $P1 ; E1=$? ; wait $P2 ; E2=$? ; exit $((E1 | E2))",
"test:codeblocks:parallel": "docker compose run --rm cloud-pytest & docker compose run --rm v2-pytest & docker compose run --rm telegraf-pytest & wait",
"test:codeblocks:influxdb3_core": "docker compose run --rm --name influxdb3-core-pytest influxdb3-core-pytest",
"test:codeblocks:influxdb3_enterprise": "docker compose run --rm --name influxdb3-enterprise-pytest influxdb3-enterprise-pytest",
"test:codeblocks:cloud": "docker compose run --rm --name cloud-pytest cloud-pytest",
"test:codeblocks:cloud-dedicated": "./test/scripts/monitor-tests.sh start cloud-dedicated-pytest && docker compose run --name cloud-dedicated-pytest cloud-dedicated-pytest",
"test:codeblocks:cloud-serverless": "docker compose run --rm --name cloud-serverless-pytest cloud-serverless-pytest",
"test:codeblocks:clustered": "./test/scripts/monitor-tests.sh start clustered-pytest && docker compose run --name clustered-pytest clustered-pytest",
"test:codeblocks:explorer": "echo '⚠️ InfluxDB 3 Explorer pytest service not yet configured. Add explorer-pytest to compose.yaml.' && exit 0",
"test:codeblocks:telegraf": "docker compose run --rm --name telegraf-pytest telegraf-pytest",
"test:codeblocks:v1": "echo '⚠️ InfluxDB v1 pytest service not yet configured. Add v1-pytest to compose.yaml.' && exit 0",
"test:codeblocks:v2": "docker compose run --rm --name v2-pytest v2-pytest",
"test:codeblocks:stop-monitors": "./test/scripts/monitor-tests.sh stop cloud-dedicated-pytest && ./test/scripts/monitor-tests.sh stop clustered-pytest",
"test:codeblocks:python": "echo 'Testing Python code blocks...' && docker compose run --rm cloud-pytest bash -c './test/scripts/test-by-language.sh python content/influxdb/cloud/**/*.md'",
"test:codeblocks:bash": "echo 'Testing Bash/Shell code blocks...' && docker compose run --rm cloud-pytest bash -c './test/scripts/test-by-language.sh bash content/influxdb/cloud/**/*.md'",
"test:codeblocks:sql": "echo 'Testing SQL code blocks...' && docker compose run --rm cloud-pytest bash -c './test/scripts/test-by-language.sh sql content/influxdb/cloud/**/*.md'",
"test:cache:stats": "./test/scripts/manage-test-cache.sh stats",
"test:cache:clean": "./test/scripts/manage-test-cache.sh clean",
"test:cache:clear": "./test/scripts/manage-test-cache.sh clear",
"test:cache:list": "./test/scripts/manage-test-cache.sh list",
"test:lint-codeblocks": "node --test 'scripts/ci/__tests__/**/*.test.mjs'",
"lint-codeblocks": "node scripts/ci/lint-codeblocks.mjs",
"lint-codeblocks:pretty": "scripts/ci/lint-codeblocks-pretty.sh",
"test:e2e": "node cypress/support/run-e2e-specs.js",
"test:render-regression": "node cypress/support/run-e2e-specs.js --spec \"cypress/e2e/content/render-regression.cy.js\" --no-mapping",
"test:render-artifacts": ".ci/scripts/check-render-artifacts.sh public",
"test:no-test-fixtures": ".ci/scripts/check-no-test-fixtures.sh public",
"test:shortcode-examples": "node cypress/support/run-e2e-specs.js --spec \"cypress/e2e/content/index.cy.js\" content/example.md",
"test:sync-plugins": "node --test 'helper-scripts/influxdb3-plugins/test/**/*.test.js'",
"sync-plugins": "cd helper-scripts/influxdb3-plugins && node port_to_docs.js",
"sync-plugins:dry-run": "cd helper-scripts/influxdb3-plugins && node port_to_docs.js --dry-run",
"validate-plugin-config": "cd helper-scripts/influxdb3-plugins && node port_to_docs.js --validate",
"verify-plugin-coverage": "cd helper-scripts/influxdb3-plugins && node verify-coverage.js",
"debug:browser": "node scripts/puppeteer/debug-browser.js",
"debug:screenshot": "node scripts/puppeteer/screenshot.js",
"debug:inspect": "node scripts/puppeteer/inspect-page.js"
},
"type": "module",
"browserslist": [
"last 2 versions",
"not dead",
"not IE 11"
],
"engines": {
"node": ">=22.0.0"
},
"directories": {
"test": "test"
},
"keywords": [],
"author": "",
"optionalDependencies": {}
}