mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-14 14:37:57 -05:00
1.4 KiB
1.4 KiB
Bash commands
All commands should be run from <REPO_ROOT>/invokeai/frontend/web/.
pnpm lint:prettier: check formattingpnpm lint:eslint: check for linting issuespnpm lint:knip: check for unused dependenciespnpm lint:dpdm: check for dependency cyclespnpm lint:tsc: check for TypeScript issuespnpm lint: run all checkspnpm fix: automatically fix issues where possiblepnpm test:no-watch: run the test suite
Writing Tests
This repo uses vitest for unit tests.
Tests should be colocated with the code they test, and should use the .test.ts suffix.
Tests do not need to be written for code that is trivial or has no logic (e.g. simple type definitions, re-exports, etc.). We currently do not do UI tests.
Agents
- Use @agent-javascript-pro and @agent-typescript-pro for JavaScript and TypeScript code generation and assistance.
- Use @frontend-developer for general frontend development tasks.
Workflow
Split up tasks into smaller subtasks and handle them one at a time using an agent. Ensure each subtask is completed before moving on to the next.
Each agent should maintain a work log in a markdown file.
When an agent completes a task, it should:
- Summarize the changes made.
- List any files that were added, modified, or deleted.
- Commit the changes with a descriptive commit message.
DO NOT PUSH ANY CHANGES TO THE REMOTE REPOSITORY.