Skip to content

File tree

3 files changed

+43
-12
lines changed

3 files changed

+43
-12
lines changed

guides/release/tutorial/part-1/orientation.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To verify that your installation was successful, run:
2525
```shell
2626
$ ember --version
2727
ember-cli: 6.8.0
28-
node: 18.20.8
28+
node: 20.19.5
2929
os: linux x64
3030
```
3131

@@ -61,6 +61,7 @@ Creating a new Ember app in /home/runner/work/super-rentals-tutorial/super-renta
6161
create app/models/.gitkeep
6262
create app/router.js
6363
create app/routes/.gitkeep
64+
create app/services/.gitkeep
6465
create app/styles/app.css
6566
create /home/runner/work/super-rentals-tutorial/super-rentals-tutorial/dist/code/super-rentals/app/templates/application.gjs
6667
create config/ember-cli-update.json
@@ -122,6 +123,8 @@ super-rentals
122123
│ │ └── .gitkeep
123124
│ ├── routes
124125
│ │ └── .gitkeep
126+
│ ├── services
127+
│ │ └── .gitkeep
125128
│ ├── styles
126129
│ │ └── app.css
127130
│ ├── templates
@@ -134,6 +137,29 @@ super-rentals
134137
│ ├── environment.js
135138
│ ├── optional-features.json
136139
│ └── targets.js
140+
├── dist
141+
│ ├── @embroider
142+
│ │ └── virtual
143+
│ │ ├── app.css
144+
│ │ ├── test-support.css
145+
│ │ ├── test-support.js
146+
│ │ ├── vendor.css
147+
│ │ └── vendor.js
148+
│ ├── assets
149+
│ │ ├── app-BsLReVUA.css
150+
│ │ ├── app-pzWalck4.js
151+
│ │ ├── main-CdDm1GLL.js
152+
│ │ ├── modules-4-12-DZBwh_jw.js
153+
│ │ ├── tests-DP3uERZX.js
154+
│ │ └── tests-DuyDhxzu.css
155+
│ ├── ember-welcome-page
156+
│ │ └── images
157+
│ │ └── construction.png
158+
│ ├── tests
159+
│ │ └── index.html
160+
│ ├── index.html
161+
│ ├── robots.txt
162+
│ └── testem.js
137163
├── public
138164
│ └── robots.txt
139165
├── tests
@@ -145,6 +171,9 @@ super-rentals
145171
│ │ └── .gitkeep
146172
│ ├── index.html
147173
│ └── test-helper.js
174+
├── tmp
175+
│ └── compat-prebuild
176+
│ └── .stage2-output
148177
├── .editorconfig
149178
├── .ember-cli
150179
├── .env.development
@@ -165,7 +194,7 @@ super-rentals
165194
├── testem.cjs
166195
└── vite.config.mjs
167196
168-
27 directories, 56 files
197+
28 directories, 58 files
169198
```
170199

171200
We'll learn about the purposes of these files and folders as we go. For now, just know that we'll spend most of our time working within the `app` folder.
@@ -191,11 +220,11 @@ Build successful (9761ms)
191220

192221
Slowest Nodes (totalTime >= 5%) | Total (avg)
193222
-+-
194-
Babel: @embroider/macros (1) | 436ms
223+
Babel: @embroider/macros (1) | 394ms
195224

196225

197226

198-
VITE v6.3.6 ready in 4143 ms
227+
VITE v7.1.10 ready in 3824 ms
199228

200229
➜ Local: http://localhost:4200/
201230
```

guides/release/tutorial/part-1/reusable-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ Build successful (13286ms)
101101

102102
Slowest Nodes (totalTime >= 5%) | Total (avg)
103103
-+-
104-
Babel: @embroider/macros (1) | 423ms
104+
Babel: @embroider/macros (1) | 393ms
105105

106106

107107

108-
VITE v6.3.6 ready in 4119 ms
108+
VITE v7.1.10 ready in 3790 ms
109109

110110
➜ Local: http://localhost:4200/
111111
```

guides/release/tutorial/part-2/ember-data.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,18 +334,14 @@ Let's start customizing the things that didn't work for us by default. Specifica
334334
335335
The first thing we want to do is have our builder respect a configurable default host and/or namespace. Adding a namespace prefix happens to be pretty common across Ember apps, so EmberData provides a global config mechanism for host and namespace. Typically you will want to do this either in your store file or app file.
336336
337-
```js { data-filename="app/app.js" data-diff="+7,+8,+9,+10,+11" }
337+
```js { data-filename="app/app.js" data-diff="+21,+22,+23,+24,+25" }
338338
import Application from '@ember/application';
339339
import compatModules from '@embroider/virtual/compat-modules';
340340
import Resolver from 'ember-resolver';
341341
import loadInitializers from 'ember-load-initializers';
342342
import config from 'super-rentals/config/environment';
343343
import { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';
344-
import { setBuildURLConfig } from '@ember-data/request-utils';
345-
346-
setBuildURLConfig({
347-
namespace: 'api',
348-
});
344+
import setupInspector from '@embroider/legacy-inspector-support/ember-source-4.12';
349345

350346
if (macroCondition(isDevelopingApp())) {
351347
importSync('./deprecation-workflow');
@@ -355,9 +351,15 @@ export default class App extends Application {
355351
modulePrefix = config.modulePrefix;
356352
podModulePrefix = config.podModulePrefix;
357353
Resolver = Resolver.withModules(compatModules);
354+
inspector = setupInspector(this);
358355
}
359356

360357
loadInitializers(App, config.modulePrefix, compatModules);
358+
import { setBuildURLConfig } from '@ember-data/request-utils';
359+
360+
setBuildURLConfig({
361+
namespace: 'api',
362+
});
361363
```
362364
363365
Adding the `.json` extension is a bit less common, and doesn't have a declarative configuration API of its own. We could just modify request options directly in place of use, but that would be a bit messy. Instead, let's create a handler to do this for us.

0 commit comments

Comments
 (0)