Browse Source

chore: optimize startup performance (#6952)

pull/6731/head
Konv Suu 1 year ago committed by GitHub
parent
commit
0f1ffc99cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      package.json
  2. 1
      scripts/generate-token-meta.js
  3. 7
      tsconfig.node.json

6
package.json

@ -30,14 +30,14 @@
"locale"
],
"scripts": {
"collect-token-statistic": "ts-node --project tsconfig.node.json scripts/collect-token-statistic.js",
"collect-token-statistic": "tsx scripts/collect-token-statistic.js",
"token-meta": "node scripts/generate-token-meta.js",
"predev": "npm run version & npm run collect-token-statistic & npm run token-meta && node node_modules/esbuild/install.js",
"precompile": "npm run version & npm run collect-token-statistic & npm run token-meta",
"pretest": "npm run version",
"predist": "npm run version",
"presite": "npm run version & npm run routes & npm run collect-token-statistic & npm run token-meta",
"dev": "npm run predev && npm run routes && vite serve site",
"dev": "npm run routes && vite serve site",
"fast-dev": "npm run routes && vite serve site",
"test": "cross-env NODE_ENV=test jest --config .jest.js",
"compile": "node antd-tools/cli/run.js compile",
@ -250,7 +250,7 @@
"tinycolor2": "^1.6.0",
"ts-jest": "^28.0.5",
"ts-loader": "^9.1.0",
"ts-node": "^10.8.2",
"tsx": "^3.12.10",
"typedoc": "^0.23.25",
"typescript": "~4.9.3",
"umi-request": "^1.3.5",

1
scripts/generate-token-meta.js

@ -39,6 +39,7 @@ function main() {
app.bootstrap({
// typedoc options here
entryPoints: ['components/theme/interface/index.ts'],
skipErrorChecking: true,
});
const project = app.convert();

7
tsconfig.node.json

@ -1,7 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"types": ["node"]
}
}
Loading…
Cancel
Save