nextui-org / nextui-cli

⌨️ A CLI tool that unlocks seamless NextUI integration.
MIT License
40 stars 14 forks source link

feat: init doctor command #7

Closed winchesHe closed 5 months ago

winchesHe commented 5 months ago

Doctor command finish

Dependencies Show

1、Check whether redundant denpendencies

2、Check allComponents required dependencies has installed correctly

CleanShot 2024-03-31 at 00 08 19

3、Check Individual Components required dependencies has installed correctly

image

Tailwind Show

4、Check Individual Components missing tailwindcss.config.js required content

image image image image

App Show

image image

Pnpm Show

If the package manager is Pnpm, and then it will check the .npmrc file is correct

image

Optimize Tailwind Output

1、Missing `tailwind.config.(j|t)s

image

2、Add detect tailwind.config.ts

image
jrgarciadev commented 5 months ago

@winchesHe I think that we could also check these scenarios

winchesHe commented 5 months ago

@winchesHe I think that we could also check these scenarios

Got, the doctor PR is still draft WIP I will draft it untill finished full funtionality

jrgarciadev commented 5 months ago

@winchesHe we also need to consider TailwindCSS TS/ESM config file https://tailwindcss.com/docs/configuration#using-esm-or-type-script

So we need to identify whether the user is using tailwind.config.js or tailwind.config.ts and adapt the doctor's suggestions/comments on top of that file

winchesHe commented 5 months ago

@winchesHe we also need to consider TailwindCSS TS/ESM config file https://tailwindcss.com/docs/configuration#using-esm-or-type-script

So we need to identify whether the user is using tailwind.config.js or tailwind.config.ts and adapt the doctor's suggestions/comments on top of that file

Yes, I will fix all the issues above🙌