JSPM

  • Created
  • Published
  • Downloads 126
  • Score
    100M100P100Q63732F
  • License MIT

Generate Next.js components from your Prisma Schema

Package Exports

  • nexquik
  • nexquik/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nexquik) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


Logo
Nexquik

Transform your database schema into a Stunning Next.js app in seconds

CLI UsagePrisma Generator UsageOptionsExamples

CLI Usage

npx nexquik -schema schema.prisma

Prisma Generator Usage

Install

npm install nexquik

Add to your Prisma schema

generator nexquik {
    provider = "prisma-generator-nexquik"
}

Generate

npx prisma generate

Options

Option Description Default Required
schema Path to prisma schema file schema.prisma false
output Path to output directory nexquikApp false
include Comma-separated list of model names to include from the top-level of the generated app false
exclude Comma-separated list of model names to exclude from the top-level of the generated app (NOTE: If the 'include' option is used, this exclusion list will be ignored) false
depth Maximum recursion depth for your models. (Changing this for large data models is not recommended, unless you filter down your models with the 'include' or 'exclude' flags also.) 5 false

Disabled

To disable Nexquik from generating during a Prisma generate, add the following environmental variable.

DISABLE_NEXQUIK=true

Examples

generator nexquik {
    provider = "prisma-generator-nexquik"
    output   = "yourOutputDirectory"
    exclude  = "ModelOne,ModelTwo"
}
generator nexquik {
    provider = "prisma-generator-nexquik"
    output   = "yourOutputDirectory"
    include  = "ModelThree"
}
npx nexquik -schema mySchema.prisma -output myOutputDirectory -exclude ModelOne,ModelTwo
npx nexquik -schema mySchema.prisma -output myOutputDirectory -include ModelThree