Skip to content

Commit e744e65

Browse files
authored
Merge pull request #319 from embroider-build/never-suggest-global-ember
Never suggest to use global ember-cli
2 parents be350ed + 2cd9b2b commit e744e65

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The blueprint contains a number of assumptions, e.g. using a monorepo using (`ya
1515
## Usage
1616

1717
```bash
18-
ember addon my-addon -b @embroider/addon-blueprint --pnpm
18+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --pnpm
1919
```
2020

2121
### Options
@@ -30,7 +30,7 @@ Sets up the new addon with [`pnpm`](https://pnpm.io/) as a default package manag
3030
Example:
3131

3232
```bash
33-
ember addon my-addon -b @embroider/addon-blueprint --pnpm
33+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --pnpm
3434
cd my-addon
3535
```
3636

@@ -41,7 +41,7 @@ Sets up the new addon with `npm` as a default.
4141
Example:
4242

4343
```bash
44-
ember addon my-addon -b @embroider/addon-blueprint --npm
44+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --npm
4545
cd my-addon
4646
```
4747

@@ -52,7 +52,7 @@ Sets up the new addon with `yarn` as a default.
5252
Example:
5353

5454
```bash
55-
ember addon my-addon -b @embroider/addon-blueprint --yarn
55+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --yarn
5656
cd my-addon
5757
```
5858

@@ -75,7 +75,7 @@ The location / folder name of the addon can be customized via `--test-app-locati
7575
Examples:
7676

7777
```bash
78-
ember addon my-addon -b @embroider/addon-blueprint --test-app-location=test-app
78+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --test-app-location=test-app
7979
# generates
8080
# my-addon/test-app
8181
```
@@ -89,7 +89,7 @@ The name of the test-app can be customized via `--test-app-name`.
8989
Examples:
9090

9191
```bash
92-
ember addon my-addon -b @embroider/addon-blueprint --test-app-name=test-app-for-my-addon
92+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --test-app-name=test-app-for-my-addon
9393
# generates
9494
# my-addon/test-app-for-my-addon
9595
```
@@ -104,7 +104,7 @@ This is useful for incremental migrations of v1 addons to v2 addons where the pr
104104
guide.
105105

106106
```bash
107-
ember addon my-addon -b @embroider/addon-blueprint --addon-only
107+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --addon-only
108108
# generates non-monorepo:
109109
# my-addon/
110110
# .git
@@ -119,7 +119,7 @@ If you want release-it behavior, (specifically provided by `create-rwjblue-relea
119119
use the `--release-it` flag
120120

121121
```bash
122-
ember addon my-addon -b @embroider/addon-blueprint --yarn --release-it
122+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --yarn --release-it
123123
```
124124

125125
#### `--typescript`
@@ -129,7 +129,7 @@ Sets up the new addon with [`typescript`](https://www.typescriptlang.org/) suppo
129129
Example:
130130

131131
```bash
132-
ember addon my-addon -b @embroider/addon-blueprint --typescript
132+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint --typescript
133133
```
134134

135135
### Updating the addon
@@ -174,7 +174,7 @@ To generate this run:
174174

175175
```bash
176176
cd project-monorepo
177-
ember addon my-addon -b @embroider/addon-blueprint \
177+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint \
178178
--skip-git \
179179
--skip-npm \
180180
--addon-location="addons/my-addon/package" \
@@ -202,7 +202,7 @@ To generate this run:
202202

203203
```bash
204204
cd project-monorepo
205-
ember addon my-addon -b @embroider/addon-blueprint \
205+
npx ember-cli@latest addon my-addon -b @embroider/addon-blueprint \
206206
--skip-git \
207207
--skip-npm \
208208
--addon-location="addons/my-addon" \

0 commit comments

Comments
 (0)