Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
/ templates Public archive

Prisma templates packaged up for programatic consumption.

License

Notifications You must be signed in to change notification settings

prisma/templates

Repository files navigation

templates-node

trunk

Prisma templates packaged up for programmatic consumption.

Documentation

Development:

  1. Install sha1sum library (for macOS via brew install md5sha1sum).
  2. yarn run build:gen
  3. yarn dev

Testing

  • yarn test:db:up to start test databases

Creating a File Transformer

  1. Create a file transformer module in src/fileTransformers
  2. Export its contents in src/fileTransformers/index_.ts

That's it, it will now be run in the file transform stack. How? Look in the code generator template code.