Merge pull request #2 from Yaosanqi137/feature/p1-repo-bootstrap

Feature/p1 repo bootstrap
This commit is contained in:
Yaosanqi137
2026-04-04 12:17:58 +08:00
committed by GitHub
18 changed files with 278 additions and 1 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
develop.md
.idea/
node_modules/
.turbo/
.idea/
View File
View File
View File
+62
View File
@@ -0,0 +1,62 @@
# ADR-XXXX<决策标题>
- 状态:Proposed | Accepted | Deprecated | Superseded
- 日期:YYYY-MM-DD
- 决策人:<团队/人员>
- 关联需求:<Issue/PR/文档链接>
## 背景
描述当前问题、约束条件,以及为什么现在必须做出这项决策。
## 决策驱动因素
- <驱动因素 1>
- <驱动因素 2>
- <驱动因素 3>
## 可选方案
1. <方案 A>
2. <方案 B>
3. <方案 C>
## 最终决策
选择方案:**<方案 X>**
说明选择该方案的理由,以及未选择其他方案的原因。
## 影响评估
### 正向影响
- <收益 1>
- <收益 2>
### 负向影响 / 取舍
- <代价 1>
- <代价 2>
## 实施计划
1. <步骤 1>
2. <步骤 2>
3. <步骤 3>
## 回滚方案
说明当风险发生时,如何撤销或回退这项决策。
## 验证清单
- [ ] 单元测试
- [ ] 集成测试
- [ ] 性能检查
- [ ] 安全检查
## 参考资料
- <参考资料 1>
- <参考资料 2>
+22
View File
@@ -0,0 +1,22 @@
{
"name": "todolist",
"version": "0.1.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "turbo run test",
"dev": "turbo run dev --parallel",
"build": "turbo run build",
"lint": "turbo run lint",
"typecheck": "turbo run typecheck",
"format": "turbo run format"
},
"keywords": [],
"author": "",
"license": "GPL-3.0-or-later",
"private": true,
"packageManager": "pnpm@9.15.2",
"devDependencies": {
"turbo": "^2.9.3"
}
}
+16
View File
@@ -0,0 +1,16 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
env: {
browser: true,
es2022: true,
node: true
},
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
rules: {
"no-console": "warn",
"no-debugger": "error"
}
};
+11
View File
@@ -0,0 +1,11 @@
{
"name": "@todolist/eslint-config",
"version": "0.1.0",
"description": "Shared ESLint config presets for TodoList",
"main": "base.cjs",
"license": "GPL-3.0-or-later",
"private": true,
"files": [
"base.cjs"
]
}
View File
View File
+17
View File
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"lib": ["ES2022"],
"types": ["node"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"sourceMap": true
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"name": "@todolist/tsconfig",
"version": "0.1.0",
"description": "Shared TypeScript config presets for TodoList",
"license": "GPL-3.0-or-later",
"private": true,
"files": [
"base.json",
"react-app.json",
"nest-app.json"
]
}
+9
View File
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"compilerOptions": {
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"types": ["vite/client"]
}
}
View File
+82
View File
@@ -0,0 +1,82 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
turbo:
specifier: ^2.9.3
version: 2.9.3
packages/eslint-config: {}
packages/tsconfig: {}
packages:
'@turbo/darwin-64@2.9.3':
resolution: {integrity: sha512-P8foouaP+y/p+hhEGBoZpzMbpVvUMwPjDpcy6wN7EYfvvyISD1USuV27qWkczecihwuPJzQ1lDBuL8ERcavTyg==}
cpu: [x64]
os: [darwin]
'@turbo/darwin-arm64@2.9.3':
resolution: {integrity: sha512-SIzEkvtNdzdI50FJDaIQ6kQGqgSSdFPcdn0wqmmONN6iGKjy6hsT+EH99GP65FsfV7DLZTh2NmtTIRl2kdoz5Q==}
cpu: [arm64]
os: [darwin]
'@turbo/linux-64@2.9.3':
resolution: {integrity: sha512-pLRwFmcHHNBvsCySLS6OFabr/07kDT2pxEt/k6eBf/3asiVQZKJ7Rk88AafQx2aYA641qek4RsXvYO3JYpiBug==}
cpu: [x64]
os: [linux]
'@turbo/linux-arm64@2.9.3':
resolution: {integrity: sha512-gy6ApUroC2Nzv+qjGtE/uPNkhHAFU4c8God+zd5Aiv9L9uBgHlxVJpHT3XWl5xwlJZ2KWuMrlHTaS5kmNB+q1Q==}
cpu: [arm64]
os: [linux]
'@turbo/windows-64@2.9.3':
resolution: {integrity: sha512-d0YelTX6hAsB7kIEtGB3PzIzSfAg3yDoUlHwuwJc3adBXUsyUIs0YLG+1NNtuhcDOUGnWQeKUoJ2pGWvbpRj7w==}
cpu: [x64]
os: [win32]
'@turbo/windows-arm64@2.9.3':
resolution: {integrity: sha512-/08CwpKJl3oRY8nOlh2YgilZVJDHsr60XTNxRhuDeuFXONpUZ5X+Nv65izbG/xBew9qxcJFbDX9/sAmAX+ITcQ==}
cpu: [arm64]
os: [win32]
turbo@2.9.3:
resolution: {integrity: sha512-J/VUvsGRykPb9R8Kh8dHVBOqioDexLk9BhLCU/ZybRR+HN9UR3cURdazFvNgMDt9zPP8TF6K73Z+tplfmi0PqQ==}
hasBin: true
snapshots:
'@turbo/darwin-64@2.9.3':
optional: true
'@turbo/darwin-arm64@2.9.3':
optional: true
'@turbo/linux-64@2.9.3':
optional: true
'@turbo/linux-arm64@2.9.3':
optional: true
'@turbo/windows-64@2.9.3':
optional: true
'@turbo/windows-arm64@2.9.3':
optional: true
turbo@2.9.3:
optionalDependencies:
'@turbo/darwin-64': 2.9.3
'@turbo/darwin-arm64': 2.9.3
'@turbo/linux-64': 2.9.3
'@turbo/linux-arm64': 2.9.3
'@turbo/windows-64': 2.9.3
'@turbo/windows-arm64': 2.9.3
+3
View File
@@ -0,0 +1,3 @@
packages:
- "apps/*"
- "packages/*"
+28
View File
@@ -0,0 +1,28 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"dev": {
"cache": false,
"persistent": true
},
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "build/**"]
},
"lint": {
"dependsOn": ["^lint"],
"outputs": []
},
"test": {
"dependsOn": ["^test"],
"outputs": ["coverage/**"]
},
"typecheck": {
"dependsOn": ["^typecheck"],
"outputs": []
},
"format": {
"outputs": []
}
}
}