feat: add dayjs dependencies, adjust budget, and initialize agent verification rules
This commit is contained in:
1 parent
a508c42694
commit
d22c8845a6
2 files changed
+42
-4
No files matched your search
@@ -0,0 +1,33 @@
|
||||
# Agent Rules and Verification Constraints
|
||||
|
||||
All AI agents (including Cline, Antigravity, Cursor, and Copilot) must adhere to the following rules before declaring a task complete:
|
||||
|
||||
1. **Test Coverage (>= 80%)**:
|
||||
- The overall project code coverage (Statements, Lines, and Functions) must be maintained at **80% or higher**.
|
||||
- Verify coverage by running:
|
||||
```bash
|
||||
bun run test --watch=false --coverage
|
||||
```
|
||||
- If your changes introduce new code or modify existing code in a way that drops the coverage below 80%, you must write appropriate unit tests in `.spec.ts` files to bring it back up.
|
||||
|
||||
2. **Code Formatting (Prettier)**:
|
||||
- All code files must be correctly formatted according to the project's Prettier config before finishing.
|
||||
- Run the formatter with:
|
||||
```bash
|
||||
bun run format
|
||||
```
|
||||
|
||||
3. **Successful Build**:
|
||||
- The project must always build successfully for production without compilation or bundling errors before ending.
|
||||
- Verify the build with:
|
||||
```bash
|
||||
bun run build
|
||||
```
|
||||
|
||||
4. **GitLab Pipeline Checks**:
|
||||
- You must execute the local equivalent of the GitLab CI/CD pipeline steps before completing your task. All of the following commands must pass:
|
||||
- **Linting check**: `bun run lint` (or use `bun run lint:fix` to resolve auto-fixable issues)
|
||||
- **Formatting check**: `bun run format:check`
|
||||
- **TypeScript Type check**: `bunx tsc --noEmit`
|
||||
- **Unit Tests and Coverage**: `bun run test --watch=false --coverage`
|
||||
- **Production Build**: `bun run build -- --configuration production`
|
||||
+9
-4
@@ -26,7 +26,9 @@
|
||||
"input": "public"
|
||||
}
|
||||
],
|
||||
"styles": ["src/styles.scss"],
|
||||
"styles": [
|
||||
"src/styles.scss"
|
||||
],
|
||||
"server": "src/main.server.ts",
|
||||
"outputMode": "server",
|
||||
"ssr": {
|
||||
@@ -35,7 +37,10 @@
|
||||
"allowedCommonJsDependencies": [
|
||||
"deepmerge",
|
||||
"moment-timezone",
|
||||
"jalaali-js"
|
||||
"jalaali-js",
|
||||
"dayjs",
|
||||
"dayjs/plugin/weekOfYear",
|
||||
"dayjs/plugin/isoWeek"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
@@ -43,7 +48,7 @@
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2MB",
|
||||
"maximumWarning": "2.5MB",
|
||||
"maximumError": "3MB"
|
||||
},
|
||||
{
|
||||
@@ -86,4 +91,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user