feat(utils): 添加数组、字符串、异步工具函数和测试 feat(utils): 实现日志、编码和类型工具模块 fix(web): 修复Service Worker缓存策略和CSP头 ci: 添加bundle大小检查工作流 build: 添加size-limit依赖和配置 perf(web): 优化vite分包策略
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "utils",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/utils/src",
|
|
"projectType": "library",
|
|
"targets": {
|
|
"build": {
|
|
"executor": "@nx/vite:build",
|
|
"outputs": ["{options.outputPath}"],
|
|
"defaultConfiguration": "production",
|
|
"options": {
|
|
"outputPath": "dist/utils",
|
|
"configFile": "packages/utils/vite.config.ts"
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"],
|
|
"options": {
|
|
"lintFilePatterns": ["packages/utils/**/*.ts"]
|
|
}
|
|
},
|
|
"typecheck": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "tsc --noEmit -p packages/utils/tsconfig.json"
|
|
}
|
|
},
|
|
"test": {
|
|
"executor": "@nx/vite:test",
|
|
"outputs": ["{options.reportsDirectory}"],
|
|
"options": {
|
|
"passWithNoTests": false,
|
|
"reportsDirectory": "../../coverage/packages/utils"
|
|
}
|
|
}
|
|
},
|
|
"tags": ["type:library", "scope:shared"]
|
|
}
|