templates-node
Prisma templates packaged up for programmatic consumption.
Development:
- Install
sha1sum
library (for macOS viabrew install md5sha1sum
). yarn run build:gen
yarn dev
Testing
-
yarn test:db:up
to start test databases
Creating a File Transformer
- Create a file transformer module in
src/fileTransformers
- 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.