uetchy / create-create-app

⚡️ Create your own `create-something` app.
MIT License
94 stars 24 forks source link

how to specify an option ? (enforce a license for example) #36

Closed goulu closed 2 years ago

goulu commented 2 years ago

is there a way to skip some wizard questions like

create("create-myapp", {
  templateRoot,
  license:"MIT",
  author:"me myself"
})

Thanks !

(I'm very happy to talk with the creator of the app creators creator ;-) )

uetchy commented 2 years ago

You can skip these questions by passing CLI flags to your app!

create-myapp --license MIT --author "me myself"

Edit: I'd recommend creating an alias for your daily workflow

alias create-myapp="create-myapp --license MIT --author 'goulu' --email='...'"

create-myapp
# or
create-myapp --template another-template
goulu commented 2 years ago

Thanks, but I wanted to specifiy this in the code, so that my dear colleagues can use my creator-companyapp without caring about the licence for example. I think I'd need something like

interface Options {
    default : View; // passed as default values to the create function, setting prompt='never' for non empty values somewhere
    default : 
    templateRoot: string;
    ...

I will maybe fork and implement this ...

anyway, thanks again, creator of the app creator creator ... This is metaphysically amazing :-)

uetchy commented 2 years ago

ooooo I see now. So it is for more internal or enterprise usage. Let me think of how we could structure the options for that.

uetchy commented 2 years ago

Also I would appreciate your input and hopefully your PR😂

uetchy commented 2 years ago

Implemented in v7.3.0