-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[license] Remove CLI #5757
[license] Remove CLI #5757
Conversation
These are the results for the performance tests:
|
I assume it's related to #4251. Looking back at the conversation, one of the constraintes we had changed. We said
#4251 (comment) but it doesn't seem to be the case anymore. Our Toolpad support app for MUI X is using the exported JavaScript modules with an ESM import. Would this work?
|
This PR is here to help @mbrookes which can't use the CLI anymore.
Indeed, do you have a better check idea ? |
We can keep only this import:
You can still test it with |
@mbrookes I'm curious why do you need the CLI? Or put it differently, what are you missing from https://master--toolpad.mui.com/_toolpad/app/cl4hla83p01949xoizo5uxf2a/editor/pages/cl4hla87800029xoihl7tf4qz? |
A date picker. A CLI command is also quicker to complete than a web UI. |
@mbrookes Interesting. I have tried to make it better. I have added default values in Toolpad to match the ones of the CLI. I have also reported how we could use URL parameters mui/mui-toolpad#414 (comment). A quick comparison: Toolpad: 3.13s https://master--toolpad.mui.com/app/cl4hla83p01949xoizo5uxf2a/15/pages/cl4hla87800029xoihl7tf4qz Screen.Recording.2022-08-13.at.00.59.32.movvs. CLI: 4.03s npx @material-ui/x-license --order 121 Screen.Recording.2022-08-13.at.01.02.57.movI think that the main value will come once we delegate the support to less technical agents that won't know how to use the CLI. I got a glimpse of what the pain could be. |
I've added options for two and three years in Toolpad, and fixed a bug with custom. I think it's good enough for now, even better when the date picker works. We can drop the CLI. |
CLI removed |
We no longer need the CLI to encode / decode licenses. Related to #4251.