Skip to content
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

Create CLI to use examples projects #39587

Closed
oliviertassinari opened this issue Oct 24, 2023 · 1 comment
Closed

Create CLI to use examples projects #39587

oliviertassinari opened this issue Oct 24, 2023 · 1 comment
Labels
new feature New feature or request waiting for 👍 Waiting for upvotes

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Oct 24, 2023

Summary 💡

In the examples we have:

Screenshot 2023-10-24 at 12 42 42

https://github.com/mui/material-ui/tree/c82e4a8985a7ec38dd9b829a1aa7f84756b164df/examples/base-ui-vite-tailwind-ts#how-to-use

we copy the whole repository, it's slow. I did a test from a location that doesn't have a great internet connection, it took 437s to create vs. Next.js npx create-next-app@latest which took 90s. It's x4 faster. maybe could create a CLI for something that doesn't download the whole repository.


Toolpad has something similar npx create-toolpad-app@latest but different, it's a CLI that allows you to create you first project with a suite of questions to answer to. It's equivalent to Next.js npx create-next-app@latest.

Examples 🌈

Motivation 🔦

Speed

@oliviertassinari oliviertassinari added new feature New feature or request waiting for 👍 Waiting for upvotes status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 24, 2023
@oliviertassinari oliviertassinari changed the title Create CLI to use examples projects Create CLI npx create-mui-app Oct 24, 2023
@oliviertassinari oliviertassinari changed the title Create CLI npx create-mui-app Create CLI to use examples projects Oct 24, 2023
@oliviertassinari
Copy link
Member Author

Closing, there is no room to do it better, e.g. https://github.com/vercel/next.js/blob/06b9fb7bb82191ecbaae36896a228afac6fdbca7/packages/create-next-app/helpers/examples.ts#L120C6-L120C61 we still have to download everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request waiting for 👍 Waiting for upvotes
Projects
None yet
Development

No branches or pull requests

1 participant