ember-cli / ember-cli/ember-cli-update

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

Offen
#1,254 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
279
Forks
44
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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:
```bash
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,
```bash
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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.