2
2
title : Overview
3
3
---
4
4
5
+ ::: tip Boilerplate Sucks 👎🏽
6
+ We're re-aligning our packages into a new streamlined installation and setup experience.<br >
7
+ Below you'll find the current * boilerplate heavy* setup.
8
+
9
+ Curious? Read the [ RFC] ( https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/ )
10
+ :::
11
+
5
12
# Configuration
6
13
7
14
*** Warp* Drive** is highly configurable. The library is designed as a series of small packages with clear
8
15
interface-driven boundaries between each other and brought together by configuration.
9
16
17
+ ::: warning ⚠️ Caution
18
+ WarpDrive packages follow lockstep: dependencies and peer-dependencies between WarpDrive packages are version-locked at the time of publish.
19
+
20
+ We find this means its best to use exact versions instead of ranges as all WarpDrive packages should be upgraded together at once.
21
+
22
+ All of the installation commands below pin the version for this reason.
23
+ :::
24
+
10
25
Below, we detail the installation for the most common configurations.
11
26
12
27
<br >
@@ -16,18 +31,23 @@ Below, we detail the installation for the most common configurations.
16
31
17
32
## Installation {#installation}
18
33
19
- ::: tip Boilerplate Sucks 👎🏽
20
- We're re-aligning our packages into a new streamlined installation and setup experience.<br >
21
- Below you'll find the current * boilerplate heavy* setup.
22
34
23
- Curious? Read the [ RFC] ( https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/ )
24
- :::
25
35
26
36
Install the core packages:
27
37
38
+ ::: info 💡 TIP
39
+ WarpDrive uses npm channel tags to simplify installation.
40
+ - ` @lts ` is the latest LTS release
41
+ - ` @latest ` is the latest stable release
42
+ - ` @beta ` is the latest beta release
43
+ - ` @canary ` is the latest canary release
44
+
45
+ Replace ` @latest ` in the commands below with the desired channel if needed.
46
+ :::
47
+
28
48
::: code-group
29
49
30
- ``` cli [pnpm]
50
+ ``` sh [pnpm]
31
51
pnpm add -E \
32
52
@warp-drive/core-types@latest \
33
53
@warp-drive/build-config@latest \
@@ -39,7 +59,7 @@ pnpm add -E \
39
59
@ember-data/json-api@latest;
40
60
```
41
61
42
- ``` cli [npm]
62
+ ``` sh [npm]
43
63
npm add -E \
44
64
@warp-drive/core-types@latest \
45
65
@warp-drive/build-config@latest \
@@ -51,7 +71,7 @@ npm add -E \
51
71
@ember-data/json-api@latest;
52
72
```
53
73
54
- ``` cli [yarn]
74
+ ``` sh [yarn]
55
75
yarn add -E \
56
76
@warp-drive/core-types@latest \
57
77
@warp-drive/build-config@latest \
@@ -63,7 +83,7 @@ yarn add -E \
63
83
@ember-data/json-api@latest;
64
84
```
65
85
66
- ``` cli [bun]
86
+ ``` sh [bun]
67
87
bun add --exact \
68
88
@warp-drive/core-types@latest \
69
89
@warp-drive/build-config@latest \
@@ -81,19 +101,19 @@ Optionally, install the ESLint plugin `eslint-plugin-warp-drive`
81
101
82
102
::: code-group
83
103
84
- ``` cli [pnpm]
104
+ ``` sh [pnpm]
85
105
pnpm add -E eslint-plugin-warp-drive@latest
86
106
```
87
107
88
- ``` cli [npm]
108
+ ``` sh [npm]
89
109
npm add -E eslint-plugin-warp-drive@latest
90
110
```
91
111
92
- ``` cli [yarn]
112
+ ``` sh [yarn]
93
113
yarn add -E eslint-plugin-warp-drive@latest
94
114
```
95
115
96
- ``` cli [bun]
116
+ ``` sh [bun]
97
117
bun add --exact eslint-plugin-warp-drive@latest
98
118
```
99
119
@@ -105,19 +125,19 @@ Install `@warp-drive/ember`
105
125
106
126
::: code-group
107
127
108
- ``` cli [pnpm]
128
+ ``` sh [pnpm]
109
129
pnpm add -E @warp-drive/ember@latest
110
130
```
111
131
112
- ``` cli [npm]
132
+ ``` sh [npm]
113
133
npm add -E @warp-drive/ember@latest
114
134
```
115
135
116
- ``` cli [yarn]
136
+ ``` sh [yarn]
117
137
yarn add -E @warp-drive/ember@latest
118
138
```
119
139
120
- ``` cli [bun]
140
+ ``` sh [bun]
121
141
bun add --exact @warp-drive/ember@latest
122
142
```
123
143
@@ -127,19 +147,19 @@ Optionally, for Ember Inspector support install `@ember-data/debug`
127
147
128
148
::: code-group
129
149
130
- ``` cli [pnpm]
150
+ ``` sh [pnpm]
131
151
pnpm add -E @ember-data/debug@latest
132
152
```
133
153
134
- ``` cli [npm]
154
+ ``` sh [npm]
135
155
npm add -E @ember-data/debug@latest
136
156
```
137
157
138
- ``` cli [yarn]
158
+ ``` sh [yarn]
139
159
yarn add-E @ember-data/debug@latest
140
160
```
141
161
142
- ``` cli [bun]
162
+ ``` sh [bun]
143
163
bun add --exact @ember-data/debug@latest
144
164
```
145
165
@@ -149,25 +169,25 @@ Optionally, to use the legacy `@ember-data/model` experience (via Model or via S
149
169
150
170
::: code-group
151
171
152
- ``` cli [pnpm]
172
+ ``` sh [pnpm]
153
173
pnpm add -E \
154
174
@ember-data/model@latest \
155
175
@ember-data/legacy-compat@latest;
156
176
```
157
177
158
- ``` cli [npm]
178
+ ``` sh [npm]
159
179
npm add -E \
160
180
@ember-data/model@latest \
161
181
@ember-data/legacy-compat@latest;
162
182
```
163
183
164
- ``` cli [yarn]
184
+ ``` sh [yarn]
165
185
yarn add -E \
166
186
@ember-data/model@latest \
167
187
@ember-data/legacy-compat@latest;
168
188
```
169
189
170
- ``` cli [bun]
190
+ ``` sh [bun]
171
191
bun add --exact \
172
192
@ember-data/model@latest \
173
193
@ember-data/legacy-compat@latest;
@@ -180,28 +200,28 @@ Optionally, to use the legacy **Adapter/Serializer** experience, install the fol
180
200
181
201
::: code-group
182
202
183
- ``` cli [pnpm]
203
+ ``` sh [pnpm]
184
204
pnpm add -E \
185
205
@ember-data/adapter@latest \
186
206
@ember-data/serializer@latest \
187
207
@ember-data/legacy-compat@latest;
188
208
```
189
209
190
- ``` cli [npm]
210
+ ``` sh [npm]
191
211
npm add -E \
192
212
@ember-data/adapter@latest \
193
213
@ember-data/serializer@latest \
194
214
@ember-data/legacy-compat@latest;
195
215
```
196
216
197
- ``` cli [yarn]
217
+ ``` sh [yarn]
198
218
yarn add -E \
199
219
@ember-data/adapter@latest \
200
220
@ember-data/serializer@latest \
201
221
@ember-data/legacy-compat@latest;
202
222
```
203
223
204
- ``` cli [bun]
224
+ ``` sh [bun]
205
225
bun add --exact \
206
226
@ember-data/adapter@latest \
207
227
@ember-data/serializer@latest \
@@ -217,19 +237,19 @@ follow common REST API patterns.
217
237
218
238
::: code-group
219
239
220
- ``` cli [pnpm]
240
+ ``` sh [pnpm]
221
241
pnpm add -E @ember-data/rest@latest
222
242
```
223
243
224
- ``` cli [npm]
244
+ ``` sh [npm]
225
245
npm add -E @ember-data/rest@latest
226
246
```
227
247
228
- ``` cli [yarn]
248
+ ``` sh [yarn]
229
249
yarn add -E @ember-data/rest@latest
230
250
```
231
251
232
- ``` cli [bun]
252
+ ``` sh [bun]
233
253
bun add --exact @ember-data/rest@latest
234
254
```
235
255
@@ -240,19 +260,19 @@ follow the rails ActiveRecord structure.
240
260
241
261
::: code-group
242
262
243
- ``` cli [pnpm]
263
+ ``` sh [pnpm]
244
264
pnpm add -E @ember-data/active-record@latest
245
265
```
246
266
247
- ``` cli [npm]
267
+ ``` sh [npm]
248
268
npm add -E @ember-data/active-record@latest
249
269
```
250
270
251
- ``` cli [yarn]
271
+ ``` sh [yarn]
252
272
yarn add -E @ember-data/active-record@latest
253
273
```
254
274
255
- ``` cli [bun]
275
+ ``` sh [bun]
256
276
bun add --exact @ember-data/active-record@latest
257
277
```
258
278
@@ -263,19 +283,19 @@ we're prototyping like SharedWorker and PersistedCache.
263
283
264
284
::: code-group
265
285
266
- ``` cli [pnpm]
286
+ ``` sh [pnpm]
267
287
pnpm add -E @warp-drive-experiments@latest
268
288
```
269
289
270
- ``` cli [npm]
290
+ ``` sh [npm]
271
291
npm add -E @warp-drive-experiments@latest
272
292
```
273
293
274
- ``` cli [yarn]
294
+ ``` sh [yarn]
275
295
yarn add -E @warp-drive-experiments@latest
276
296
```
277
297
278
- ``` cli [bun]
298
+ ``` sh [bun]
279
299
bun add --exact @warp-drive-experiments@latest
280
300
```
281
301
@@ -291,7 +311,7 @@ If you're curious, the exact list of packages to replicate `ember-data` includin
291
311
292
312
::: code-group
293
313
294
- ``` cli [pnpm]
314
+ ``` sh [pnpm]
295
315
pnpm add -E \
296
316
@warp-drive/core-types@latest \
297
317
@warp-drive/build-config@latest \
@@ -310,7 +330,7 @@ pnpm add -E \
310
330
@warp-drive/ember;
311
331
```
312
332
313
- ``` cli [npm]
333
+ ``` sh [npm]
314
334
npm add -E \
315
335
@warp-drive/core-types@latest \
316
336
@warp-drive/build-config@latest \
@@ -329,7 +349,7 @@ npm add -E \
329
349
@warp-drive/ember;
330
350
```
331
351
332
- ``` cli [yarn]
352
+ ``` sh [yarn]
333
353
yarn add -E \
334
354
@warp-drive/core-types@latest \
335
355
@warp-drive/build-config@latest \
@@ -348,7 +368,7 @@ yarn add -E \
348
368
@warp-drive/ember;
349
369
```
350
370
351
- ``` cli [bun]
371
+ ``` sh [bun]
352
372
bun add --exact \
353
373
@warp-drive/core-types@latest \
354
374
@warp-drive/build-config@latest \
0 commit comments