This repository is a monorepo managed with Nx. It contains multiple apps, workers, and libraries that work together to deliver AI-powered features. The repository provides generators, standardised commands, and deployment workflows for efficient development and continuous integration.
To generate a new worker:
- Run the worker generator:
npm run generate-app
- When prompted, you'll be asked a few things like the name and type of worker, and the Vercel AI SDK provider you want to use.
- To start development, run:
npx nx dev [name-of-worker]
For a given worker (or app), you can use Nx to perform common tasks:
- Linting:
npx nx lint [name-of-worker]
- Testing:
# with watch mode npx nx test [name-of-worker]
Generating Types:# without watch mode npx nx test [name-of-worker]
npx nx types [name-of-worker]
- Type-checking:
npx nx type-check [name-of-worker]
- Building:
npx nx build [name-of-worker]