chore: add memory (#306)

* chore: add memory

* chore: add shell
This commit is contained in:
chenjiawei.inizio 2025-06-03 19:56:25 +08:00 committed by GitHub
parent 5d4956f393
commit 60f7ace69d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -3,8 +3,8 @@
"version": "0.0.1",
"private": true,
"scripts": {
"build": "rm -rf ./doc_build && rspress build",
"docs": "tsx ./scripts/auto-generate.ts",
"build": "NODE_OPTIONS='--max-old-space-size=8192' && rm -rf ./doc_build && rspress build",
"docs": "NODE_OPTIONS='--max-old-space-size=8192' tsx ./scripts/auto-generate.ts",
"dev": "rspress dev",
"lint": "eslint ./components --cache",
"preview": "rspress preview",

9
doc_build.sh Normal file
View File

@ -0,0 +1,9 @@
rush build
cd apps/docs
npm run docs
cd ../..
cp -r apps/docs/src/zh/auto-docs apps/docs/src/en/auto-docs
cd apps/docs
npm run build
cd ../..
rm -rf docs && mv apps/docs/doc_build docs