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-next-app CLI argument parity #1918

Open
bpkennedy opened this issue Jun 25, 2024 · 1 comment
Open

create-next-app CLI argument parity #1918

bpkennedy opened this issue Jun 25, 2024 · 1 comment
Labels
needs: reproduction This issue needs to be reproduced independently

Comments

@bpkennedy
Copy link

Unsure if this is a feature request or a bug - I see that some parts of the create-next-app CLI are working as I'd expect:

--use-npm
--use-yarn
-e
--example-path

But others do not, like:

--eslint
--tailwind

For the time being I will install and setup sensible default for my own project, but it would be nice to have these CLI arguments functional since you are already using the official next CLI.

@theodesp theodesp added the needs: reproduction This issue needs to be reproduced independently label Jun 25, 2024
@theodesp
Copy link
Member

theodesp commented Jun 26, 2024

Hey @bpkennedy. Thanks. Looking at the create-next-app source code, I'm not sure if this is supported. If you use an example template with the -e flag then the cli does only clone the repo as is and does not consider any other customization.

If you do not specify an example flag then it will consider your other flags:

https://github.com/vercel/next.js/blob/canary/packages/create-next-app/create-app.ts#L217-L236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: reproduction This issue needs to be reproduced independently
Projects
None yet
Development

No branches or pull requests

2 participants