-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: init doctor command #7
Conversation
@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 |
@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 |
Yes, I will fix all the issues above🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done! 🔥 @winchesHe just a small comment, feel free to merge this once fixed
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
![image](https://private-user-images.githubusercontent.com/96854855/318445485-630f973a-dd65-4229-a273-c36d31f38a65.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzk5ODksIm5iZiI6MTczOTA3OTY4OSwicGF0aCI6Ii85Njg1NDg1NS8zMTg0NDU0ODUtNjMwZjk3M2EtZGQ2NS00MjI5LWEyNzMtYzM2ZDMxZjM4YTY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA1NDEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2YzA5NmEwNjJhMzkyM2UzYmIwNWZlNmNkYzMxMDQ4MWVkNmY5YzYzZWIzNDc3ZjlkOWExNWVjMTBkZWM3NmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BpPcXtA3uuC-fFTdBRA7Sh0T_M6qiIvWIRJpJi2MRL4)
2、Add detect
tailwind.config.ts