pnpm install
pnpm build
pnpm test
You can also run tests for specific packages:
pnpm --filter @pothos/core exec vitest
pnpm run -r generate
cd examples/path-to-example-app
pnpm start
# or
pnpm dev # If the example supports a dev/watch mode
New plugins and examples are more than welcome!
It's generally best to open an issue before adding new features and plugins to avoid any duplicated effort, and ensure any new plugins make sense to add to this repo.
The easiest way to create add an example or plugin is to copy one of the existing packages. This will help get something set up quickly that works with all the existing scripts. Once you have a copy of an existing package building correctly, you can modify the example to implement the correct behavior.
Documentation lives in the /docs
directory, but the contents of the plugin docs are duplicated in
the README.md of each plugin so that each package has a useful readme when published to npm. If you
are editing documentation for a plugin, keeping those changes in sync with the packages README files
is usually required. This is a temporary workaround until a better solution can be found.