wpengine / faustjs

Faust.js™ - The Headless WordPress Framework
https://faustjs.org
Other
1.44k stars 134 forks source link

create-next-app CLI argument parity #1918

Open bpkennedy opened 5 months ago

bpkennedy commented 5 months ago

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 commented 5 months ago

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