* 更新 package.json 添加 js-yaml 依赖,并配置 husky 钩子以生成文档;新增 llms-full.txt 和 llms.txt 文件以整理文档链接;修正 ollama.md 中的描述。 * Update the document generation logic to extract and parse the pre-metadata to ensure that the generated document contains the title and description information. * Optimize the document generation logic, extract and parse the pre-metadata, and ensure that the generated document contains the title and description information. * Updated document generation logic to change the title and description format from the original metadata format to Markdown format to improve document readability and consistency.
49 lines
1.6 KiB
JSON
49 lines
1.6 KiB
JSON
{
|
|
"name": "fastgpt",
|
|
"version": "4.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"format-code": "prettier --config \"./.prettierrc.js\" --write \"./**/src/**/*.{ts,tsx,scss}\"",
|
|
"format-doc": "zhlint --dir ./docSite *.md --fix",
|
|
"gen:theme-typings": "chakra-cli tokens packages/web/styles/theme.ts --out node_modules/.pnpm/node_modules/@chakra-ui/styled-system/dist/theming.types.d.ts",
|
|
"postinstall": "pnpm gen:theme-typings",
|
|
"initIcon": "node ./scripts/icon/init.js",
|
|
"previewIcon": "node ./scripts/icon/index.js",
|
|
"api:gen": "tsc ./scripts/openapi/index.ts && node ./scripts/openapi/index.js && npx @redocly/cli build-docs ./scripts/openapi/openapi.json -o ./projects/app/public/openapi/index.html",
|
|
"create:i18n": "node ./scripts/i18n/index.js",
|
|
"test": "vitest run",
|
|
"test:workflow": "vitest run workflow"
|
|
},
|
|
"devDependencies": {
|
|
"@chakra-ui/cli": "^2.4.1",
|
|
"@vitest/coverage-v8": "^3.0.9",
|
|
"husky": "^8.0.3",
|
|
"i18next": "23.16.8",
|
|
"lint-staged": "^13.3.0",
|
|
"next-i18next": "15.4.2",
|
|
"prettier": "3.2.4",
|
|
"react-i18next": "14.1.2",
|
|
"vitest": "^3.0.9",
|
|
"js-yaml": "^4.1.0",
|
|
"mongodb-memory-server": "^10.1.4",
|
|
"zhlint": "^0.7.4"
|
|
},
|
|
"lint-staged": {
|
|
"./**/**/*.{ts,tsx,scss}": "npm run format-code",
|
|
"./docSite/**/**/*.md": "npm run format-doc"
|
|
},
|
|
"resolutions": {
|
|
"mdast-util-gfm-autolink-literal": "2.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.16.0",
|
|
"pnpm": ">=9.0.0"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "node docSite/static/js/doc-generate-llms.js"
|
|
}
|
|
}
|
|
}
|