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)

Open
#1,254 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
279
Forks
44
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.