Closed winchesHe closed 5 months ago
@winchesHe I think that we could also check these scenarios
pnpm
but doesn't have the public hoist setup in his .npmrc
we could throw an error because it is mandatory to load the TailwindCSS styles Ref: https://nextui.org/docs/guide/installation#setup-pnpm-optional@nextui-org/react
package installed we need to check whether they have these packages installed @nextui-org/theme @nextui-org/system framer-motion
Ref: https://nextui.org/docs/guide/installation#individual-installation@winchesHe I think that we could also check these scenarios
- If the user is using
pnpm
but doesn't have the public hoist setup in his.npmrc
we could throw an error because it is mandatory to load the TailwindCSS styles Ref: https://nextui.org/docs/guide/installation#setup-pnpm-optional- For users using individual packages who don't have the
@nextui-org/react
package installed we need to check whether they have these packages installed@nextui-org/theme @nextui-org/system framer-motion
Ref: https://nextui.org/docs/guide/installation#individual-installation- (Optional) Check whether the User's TailwindCSS Setup has the NextUI content & plugin Ref: https://nextui.org/docs/guide/installation#tailwind-css-setup-1
Got, the doctor PR is still draft WIP I will draft it untill finished full funtionality
@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 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
ortailwind.config.ts
and adapt the doctor's suggestions/comments on top of that file
Yes, I will fix all the issues above🙌
Doctor command finish
Dependencies Show
1、Check whether redundant denpendencies
2、Check allComponents required dependencies has installed correctly
3、Check Individual Components required dependencies has installed correctly
Tailwind Show
4、Check Individual Components missing tailwindcss.config.js required content
@nextui-org/react
the log will auto changeApp Show
Pnpm Show
If the package manager is Pnpm, and then it will check the .npmrc file is correct
Optimize Tailwind Output
1、Missing `tailwind.config.(j|t)s
2、Add detect
tailwind.config.ts