Plugins
Plugins are part of the core building blocks in Baeta that add functionality at build time. They can generate code, execute commands, transform files, and more.
Autoloading
Baeta provides an autoloading plugin that automatically discovers and loads your modules and resolvers, eliminating the need for manual registration.
Directives
Baeta provides a set of built-in directives through the @baeta/plugin-directives package.
Pagination
The Pagination plugin adds support for Relay-style pagination, automatically generating the necessary GraphQL types for cursor-based pagination.
Prisma
The Prisma plugin automates Prisma client generation when your schema changes, streamlining your development workflow and CI/CD pipelines.
Gitignore
The Gitignore plugin automatically adds generated files to your .gitignore, keeping your repository clean from auto-generated code. While some developers prefer to track generated files to review changes, this plugin provides a simple way to ignore them.
Exec
The Exec plugin provides a flexible way to execute commands or functions during the build process. It's particularly useful for running custom scripts, build steps, or any arbitrary code as part of your Baeta workflow.