ember-cli / ember-cli-update

Update Ember CLI projects
MIT License
276 stars 40 forks source link

How do you pass args to `ember new` when generating a diff? (ECU to get TS blueprint in a JS project) #1254

Open NullVoxPopuli opened 7 months ago

NullVoxPopuli commented 7 months ago

I'd like to use ECU to upgrade a JS project to TS using the official boilerplate, but in reading through the docs I couldn't find a way to specify extra new arguments.

For example, to make a TS project, I might do:

npx ember-cli@latest new my-app-name --pnpm --typescript

This could probably also be used to switch from yarn to pnpm.

If an original project was created with --yarn, it should be feasible to pass any args, yeah?

like,

ecu --args="--pnpm --typescript"

or something like that?


otherwise, we have h a r d m o d e, like here: https://github.com/NullVoxPopuli/ember-apply/pull/505