返回 Skill 列表
extension
分类: 开发与工程无需 API Key

canva-validate

运行Canva单仓库验证命令 - pnpm fin, taz check, pnpm test, a11y storybook测试, 类型检查, 代码检查, 和依赖修复。在提交/推送前运行。当被要求进行代码检查、类型检查、测试、运行storybook、修复导入或验证Canva单仓库中的代码时使用。

person作者: jakexiaohubgithub

Canva Validation Commands

Validation and quality check commands for the Canva monorepo. Run before committing/pushing.

Commands

| Command | Description | |---------|-------------| | pnpm fin | Runs a11y storybook tests, jest tests, taz linting, and typechecking | | pnpm fin --only types | Runs TypeScript typechecking only (run from ~/work/canva/web) | | pnpm fin --only a11y_storybook | Runs a11y storybook tests only | | pnpm test | Runs all unit tests (run from ~/work/canva/web) | | taz check | Runs all linters and formatters | | taz check --fix | Fixes all linting and formatting issues | | pnpm lint:deps:fix | Fixes dependency/import issues and regenerates tsconfig.json files | | pnpm lint:ts:types:changed | Checks types only on changed files |

Usage

Run commands from the Canva monorepo root (~/work/canva).

Typecheck Only

pnpm fin --only types

Lint and Fix

taz check --fix

Run Specific Tests

cd ~/work/canva/web
pnpm test path/to/test.spec.ts