saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.69k stars 215 forks source link

How do we implement shadcn? #437

Open SamHoque opened 5 months ago

SamHoque commented 5 months ago

https://ui.shadcn.com/docs/cli

the cli doesn't work because the next.js config and package.json are in different dirs.

bm777 commented 5 months ago

You need to adjust the way you invoke the CLI tool. in your packages.json

"scripts": {
  "custom-command": "cd path/to/your/nextron/project && cli-tool-command arguments"
}
lywaterman commented 5 months ago

Can you give some examples, I use v0 to generate components, I try to use it in nextron but I failed ...

jekigates commented 2 weeks ago

Can you give some examples, I use v0 to generate components, I try to use it in nextron but I failed ...

I just built the template here using Shadcn/UI, feel free to check it out https://github.com/jekigates/nextron-with-shadcn-ui.git