You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,46 @@ If you have an existing app that you would like to upgrade to use Vite consider
9
9
```
10
10
pnpm dlx ember-cli@latest new my-app-name -b @ember/app-blueprint --pnpm
11
11
```
12
+
13
+
## Options
14
+
15
+
### `--no-compat`
16
+
17
+
```
18
+
pnpm dlx ember-cli@latest new my-app-name \
19
+
--blueprint @ember/app-blueprint@alpha \
20
+
--pnpm \
21
+
--no-compat
22
+
```
23
+
24
+
Does the following:
25
+
- enables `type=module` in package.json (required for vite-ssr, and many ESM tools)
26
+
- makes the build and boot _MUCH FASTER_
27
+
(in large apps, this can have your app's boot be up to 1 minute faster)
28
+
- removes `@embroider/compat`
29
+
- removes support for:
30
+
- hbs (both for component files, and testing)
31
+
- content-for (in the HTML files)
32
+
- v1 addons
33
+
- node-land config/environment.js
34
+
- removes `ember-cli`
35
+
- ember-cli brings in a ton of old dependencies, so removing it makes installs much faster
36
+
- downside though is that you no longer have scaffolding (`ember g`) -- however, you could use `pnpm dlx ember-cli g ...` (or `npx ember-cli g`)
37
+
38
+
### `--minimal`
39
+
40
+
```
41
+
pnpm dlx ember-cli@latest new my-app-name \
42
+
--blueprint @ember/app-blueprint@alpha \
43
+
--pnpm \
44
+
--minimal
45
+
```
46
+
47
+
Does the following
48
+
- everything listed under `--no-compat`
49
+
- Removes all linting, formatting, and testing support
50
+
- leaves you with a minimal app that you can use for demos, and PRing to other repositories that have multi-framework support (and probably use other testing tools for that multi-framework support)
51
+
- different defaults:
52
+
- warp-drive becomes _opt-in_ (pass `--warp-drive` if you want it -- normally requires `--no-warp-drive` to remove)
53
+
- ember-welcome-page becomes _opt-in_ (normally requires `--no-welcome` to remove)
0 commit comments