0.0.8 • Published 1 year ago

@robcross1977/bible-lib v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Bible-Lib

This is just a small library so I could share the prisma object, the generated prisma client and some shared types for other bible projects.

Preparing for NPM

  1. clone project
  2. npm install
  3. npm run build
  4. update version in package.json
  5. Check in to git
  6. npm publish

Basic

For all the TypeScript functionality, it is all exported from the index.ts file and can simply be imported and used.

Prisma Schema

Generating Schema

To generate the prisma schema, simply run npm run build which will generate the prisma schema (located at node_modules/@prisma/client) and then copy it to the top level directory for sharing (client folder in the root after the build is complete).

Sharing Schema

Install this lib. Schema will be located in node_modules/@robcross1977/bible-lib/prisma/prisma.schema and can be used as follows in the project it is installed in:

prisma migrate dev --schema ./node_modules/@robcross1977/bible-lib/schema.prisma

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago