bcanfield / nexquik Goto Github PK
View Code? Open in Web Editor NEWAuto-generate Next.js 14 UI from your Prisma Schema in seconds
Home Page: https://www.npmjs.com/package/nexquik
License: Apache License 2.0
Auto-generate Next.js 14 UI from your Prisma Schema in seconds
Home Page: https://www.npmjs.com/package/nexquik
License: Apache License 2.0
I'm getting a message: Circular relationship detected in model <model name>
.
Then I get:
Generating App Directory
Nexquik Error:
Error: ENOENT: no such file or directory, scandir '/home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/templateApp/nexquikTemplateModel'
at Object.readdirSync (node:fs:1527:3)
at copyDirectory (/home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/helpers.js:29:32)
at /home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/generators.js:311:45
at Generator.next (<anonymous>)
at /home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/generators.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/generators.js:4:12)
at generateRoutes (/home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/generators.js:297:20)
at /home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/generators.js:441:19
at Generator.next (<anonymous>) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/home/osboxes/.npm/_npx/5799c79029bbfd42/node_modules/nexquik/dist/templateApp/nexquikTemplateModel'
}
Do you know what causes this? Cheers, Dave
I want to keep the styling non-opinionated. So I would like to keep just using vanilla CSS rather than something like Tailwind.
But it would be nice to base the styling off of something like create-next-app or create-t3-app
Nexquik sounds very interesting. Is there a live example anywhere?
Right now component generation is kind of messy. It is being done in generators.ts
as template strings, and there is no formatting that is happening to these template strings in the code.
I want to move the templates out to their own files using something like ejs. https://www.npmjs.com/package/ejs
Currently, the create
, edit
, list
, and show
operations are being created by default for all specified models.
It would be nice to be able to fine tune this and specify which operations to include for each model.
It seems like eventually we will need to move to a config file, but for now I would like to keep strictly using args.
My initial thought is for this, we could do something like:
program
.command('create <modelNames...>')
.description('Create models')
.action((modelNames) => {
modelNames.forEach((modelName) => {
program
.command(`--model-${modelName} [operations...]`)
.description(`Specify operations for ${modelName} (comma-separated)`)
.action((operations) => {
console.log(`Creating ${modelName} with operations:`, operations);
});
});
});
npx nexquik --model-Model1 Create,List --model-Model2 Edit,Show
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
eslint
, @types/eslint
)figlet
, @types/figlet
)@prisma/client
, prisma
)@typescript-eslint/eslint-plugin
, @typescript-eslint/eslint-plugin-tslint
, @typescript-eslint/parser
)eslint-config-next
, next
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/react
, @types/react-dom
)@babel/core
, @babel/preset-env
, @babel/preset-typescript
)fs-extra
, @types/fs-extra
)docker-compose.yml
postgres 11
.devcontainer/Dockerfile
node 20-bullseye
.github/workflows/publish.yml
actions/checkout v2
actions/setup-node v2
example/package.json
nexquik *
package.json
@prisma/client ^5.1.1
@prisma/internals ^4.14.1
@prisma/sdk ^4.0.0
@typescript-eslint/eslint-plugin ^6.4.1
@typescript-eslint/eslint-plugin-tslint ^6.4.1
@typescript-eslint/parser ^6.4.1
chalk ^4.1.2
cli-progress ^3.12.0
commander ^11.0.0
eslint ^8.47.0
eslint-config-next ^13.4.19
eslint-plugin-import ^2.28.1
eslint-plugin-prettier ^4.2.1
eslint-plugin-react ^7.33.2
eslint-plugin-react-hooks ^4.6.0
eslint-plugin-unused-imports ^3.0.0
figlet ^1.6.0
fs-extra ^11.1.1
nexquik ^3.2.0
next ^13.4.19
ora ^5.4.1
prettier ^2.8.8
ts-toolbelt ^9.6.0
@babel/core ^7.22.1
@babel/preset-env ^7.22.4
@babel/preset-typescript ^7.21.5
@semantic-release/changelog ^6.0.3
@semantic-release/git ^10.0.1
@types/cli-progress ^3.11.0
@types/eslint ^8.40.0
@types/figlet ^1.5.6
@types/fs-extra ^11.0.1
@types/jest ^29.5.1
@types/node ^20.2.5
@types/prettier ^2.7.2
babel-jest ^29.5.0
copyfiles ^2.4.1
jest ^29.5.0
nodemon ^2.0.22
npm-run-all ^4.1.5
npm-watch ^0.11.0
prisma ^5.1.1
rimraf ^5.0.1
typescript ^5.0.4
src/templateRoot/package.json
@prisma/client 5.4.2
clsx ^2.0.0
next ^13.5.4
prisma 5.4.2
react 18.2.0
react-dom 18.2.0
typescript 5.2.2
@tailwindcss/forms ^0.5.6
@types/node 20.8.5
@types/react 18.2.28
@types/react-dom 18.2.13
autoprefixer ^10.4.16
nexquik *
postcss ^8.4.31
tailwindcss ^3.3.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.