Skip to content

cloudservice-io/prisma-generator-template

Repository files navigation

Prisma Generator Template

Template CI

This repository is a template for creating custom Prisma generators. The initial code was generated by create-prisma-generator.

Motivation

I wanted to have something similar to "create-prisma-generator" but as a template, with Prisma 5 support and updated packages.

Getting Started

  1. Clone this template

  2. Name your generator: Replace the example name

Screenshot 2023-07-27 at 19 44 25

  1. Implement logic: Replace the example code in packages/generator with your custom generator logic.

  2. Test: Test your generator code

$ cd packages/generator;
$ npm t
  1. CI: Make sure you have disabled CI_template workflow and that CI is activated (if you want CI for publishing your generator package).

Contribution

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.

History

See CHANGELOG.md

License

This project is licensed under the MIT License.