pnpm build
- Build core packagespnpm build:examples
- Build example projectspnpm build:all
- Build everythingpnpm dev
- Start development mode for core packagespnpm lint
- Lint core packagespnpm lint:examples
- Lint example projectspnpm lint:fix
- Fix linting issues in core packagespnpm test
- Run tests for core packagespnpm clean
- Clean build artifacts
We have good integration with VSCode, so while editing you will have the ability to run the tests and all code should be linted and formatted automatically, as long the recommended extensions are installed.
pnpm install
pnpm dev
from the package directory will continuously watch for changes and rebuild that specific package.
pnpm dev
from the root directory will build and watch all core packages.
pnpm test:watch
from a package directory will run the tests and watch for changes.
pnpm test:watch
from the root directory will run the tests and watch for changes in all core packages.
Use the command that best suits your needs.
The create-gensx
tests require an OPENAI_API_KEY
environment variable to be set.
You need to run pnpm dev
from the root directory to ensure that all packages are built and available.
You can run pnpm dev
from the example directory to watch for changes and rerun that specific example. Be careful with this, as it will rerun the example for every change, and this can be slow/costly for examples that hit OpenAI.
To run the linter you can execute:
pnpm lint
And for trying to fix lint issues automatically, you can run:
pnpm lint:fix
To ensure formatting is correct, you can run:
pnpm format