lint-build-test
How to check code by linting, building, and testing.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
When asked to check, lint, build, or test code, follow these steps:
1. Analyze changed files
First, check which files have changed using git status or git diff --name-only.
Categorize the changes:
-
Source files:
.ts,.js,.mts,.mjs,.cjs,.cts,.tsx,.jsx -
Meta files:
.md,.yml,.yaml,.json,.html
2. Determine what to run
Based on the changed files:
- No files changed: Nothing to do.
-
Only meta files changed: Run only
yarn lint:misc --write(oryarn workspace <package-name> lint:misc --writefor a specific package). - Source files changed: Run the full check (see below).
3. Run the full check (if needed)
For a specific package
If a package name is specified (e.g. @metamask/ocap-kernel):
-
yarn workspace <package-name> lint:fix -
yarn workspace <package-name> build -
yarn workspace <package-name> test:dev:quiet
For the entire monorepo
If no package is specified:
-
yarn lint:fix -
yarn build -
yarn test:dev:quiet
Report any errors encountered during these steps.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!