Skip to content

[cli] Add framework selection to support Vite#4545

Merged
bharatkashyap merged 20 commits intomui:masterfrom
bharatkashyap:cli/vite
Jan 10, 2025
Merged

[cli] Add framework selection to support Vite#4545
bharatkashyap merged 20 commits intomui:masterfrom
bharatkashyap:cli/vite

Conversation

@bharatkashyap bharatkashyap added the create-toolpad-app Issues related to the `create-toolpad-app` CLI tool label Dec 18, 2024
Copy link
Collaborator

@apedroferreira apedroferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some general suggestions, nothing too specific to the implementation that I could notice!

# Toolpad Core - Vite & React Router

This template provides a minimal setup to get React working in Vite with HMR.
This example provides a minimal setup to get Toolpad Core working in Vite with HMR, as well as routing with React Router and a mock authentication setup.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we don't need this example anymore now that we have the Firebase one?
Or we can keep it if this one is more extendable, not sure.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it's okay to preserve the barebones example just to demonstrate the minimum requirements to get auth working


let routerOption: SupportedRouter | undefined;

if (frameworkOption === 'nextjs') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the router and framework choice could be the same menu of choices? Unless we plan to have a lot of options for both in the future i guess...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference would be to keep the options list short, so Next.js or Vite? -> App Router or Pages Router?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Dec 26, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Dec 30, 2024
@mui-bot
Copy link

mui-bot commented Dec 30, 2024

Netlify deploy preview

https://deploy-preview-4545--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against a4fae66

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 6, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 7, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 7, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 8, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 9, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jan 9, 2025
@bharatkashyap bharatkashyap merged commit 33560f6 into mui:master Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-toolpad-app Issues related to the `create-toolpad-app` CLI tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli] Support Vite starter in create-toolpad-app

3 participants