This repository is a template for creating custom Prisma generators. The initial code was generated by create-prisma-generator.
I wanted to have something similar to "create-prisma-generator" but as a template, with Prisma 5 support and updated packages.
-
Clone this template
-
Name your generator: Replace the example name
-
Implement logic: Replace the example code in packages/generator with your custom generator logic.
-
Test: Test your generator code
$ cd packages/generator;
$ npm t
- CI: Make sure you have disabled
CI_template
workflow and thatCI
is activated (if you want CI for publishing your generator package).
Contributions to improve the Prisma Generator Template are welcome! If you encounter any issues, have suggestions, or want to add new features, feel free to open an issue or submit a pull request.
See CHANGELOG.md
This project is licensed under the MIT License.