Skip to content

Commit bc755f6

Browse files
Merge branch 'main' into guide-for-deprecate-import-from-ember
2 parents 646b637 + c01db03 commit bc755f6

24 files changed

+20407
-66743
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
env:
10-
NODE_VERSION: 14
10+
NODE_VERSION: 20
1111
PERCY_PARALLEL_NONCE: ${{ github.run_id }}-${{ github.run_number }}
1212
PERCY_PARALLEL_TOTAL: 1
1313

@@ -21,40 +21,28 @@ jobs:
2121
runs-on: ubuntu-latest
2222
timeout-minutes: 3
2323
steps:
24-
- name: Check out a copy of the repo
25-
uses: actions/checkout@v3
26-
27-
- name: Use Node.js ${{ env.NODE_VERSION }}
28-
uses: actions/setup-node@v3
24+
- uses: actions/checkout@v4
25+
- uses: pnpm/action-setup@v4
26+
- uses: actions/setup-node@v4
2927
with:
30-
cache: 'npm'
28+
cache: 'pnpm'
3129
node-version: ${{ env.NODE_VERSION }}
32-
33-
- name: Install dependencies
34-
run: npm ci
35-
36-
- name: Lint
37-
run: npm run lint
30+
- run: pnpm i --frozen-lockfile
31+
- run: pnpm run lint
3832

3933
test-app:
4034
name: Test app
4135
runs-on: ubuntu-latest
4236
timeout-minutes: 3
4337
steps:
44-
- name: Check out a copy of the repo
45-
uses: actions/checkout@v3
46-
47-
- name: Use Node.js ${{ env.NODE_VERSION }}
48-
uses: actions/setup-node@v3
38+
- uses: actions/checkout@v4
39+
- uses: pnpm/action-setup@v4
40+
- uses: actions/setup-node@v4
4941
with:
50-
cache: 'npm'
42+
cache: 'pnpm'
5143
node-version: ${{ env.NODE_VERSION }}
52-
53-
- name: Install dependencies
54-
run: npm ci
55-
56-
- name: Test
57-
run: npx percy exec -- npm run test
44+
- run: pnpm install --frozen-lockfile
45+
- run: pnpm percy exec -- pnpm run test
5846
env:
5947
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
6048
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}

.markdownlint.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"default": false,
3+
"MD040": {
4+
"allowed_languages": [
5+
"js",
6+
"ts",
7+
"javascript",
8+
"typescript",
9+
"bash",
10+
"shell",
11+
"handlebars",
12+
"plaintext",
13+
"text",
14+
"json",
15+
"html",
16+
"css"
17+
]
18+
}
19+
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use-node-version=20.15.1

app/styles/app.scss

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,36 @@ table {
2323
padding: 2rem;
2424
}
2525

26+
// 404 styling
27+
.whoops {
28+
display: flex;
29+
justify-content: center;
30+
align-items: center;
31+
padding: var(--spacing-6)
32+
}
33+
34+
.whoops img {
35+
width: 240px;
36+
margin: var(--spacing-2);
37+
}
38+
39+
@media (max-width: 450px) {
40+
.whoops {
41+
flex-direction: column;
42+
padding: var(--spacing-3);
43+
}
44+
45+
.whoops img {
46+
width: 80%;
47+
margin: var(--spacing-4);
48+
}
49+
50+
.whoops__message {
51+
margin: var(--spacing-2);
52+
text-align: center;
53+
}
54+
}
55+
2656
// override ember-styleguide. Needed to contain code blocks.
2757
.main {
2858
grid-area: main;
@@ -97,24 +127,6 @@ table {
97127
width: 1px;
98128
}
99129

100-
// anchor links used on h3 headings
101-
.toc-anchor {
102-
display: inline;
103-
margin-right: var(--spacing-1);
104-
105-
&,
106-
main &,
107-
main &:link,
108-
main &:visited {
109-
background: none;
110-
color: var(--color-gray-500);
111-
}
112-
113-
&:hover {
114-
opacity: 0.75;
115-
}
116-
}
117-
118130
@media (max-width: 1007px) {
119131
body.no-scroll {
120132
overflow: hidden;
@@ -586,7 +598,9 @@ p a:hover {
586598
.ember-version-graphic {
587599
$height: 132px;
588600
width: $height;
589-
height: $height;
601+
min-height: $height;
602+
height: inherit;
603+
background-position-y: center;
590604

591605
.text {
592606
font-size: 64px;

app/templates/components/main-layout.hbs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@
1212
{{#each result.contents as |content|}}
1313
<DeprecationArticle @model={{content}}>
1414
<h3 id="{{id-for-deprecation (or content.displayId content.id) content.anchor}}">
15-
<LinkTo @route="id" @model={{content.id}} title={{content.title}} class="toc-anchor">§</LinkTo>
1615
{{markdown-to-html
1716
content.title
1817
extensions="no-wrapper"
1918
tagName=""
2019
}}
20+
<LinkTo @route="id" @model={{content.id}} title={{content.title}}>
21+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
22+
<path
23+
d="M326.61 185.4c59.75 59.8 58.93 155.69.36 214.58-.1.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.7 59.26-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.1-37.1c9.85-9.85 26.8-3.3 27.3 10.6a184.27 184.27 0 0 0 9.7 52.72 16.1 16.1 0 0 1-3.8 16.61l-13.08 13.1c-28.02 28.02-28.9 73.65-1.15 101.95 28.02 28.58 74.08 28.75 102.32.51l67.2-67.19a71.98 71.98 0 0 0-10.34-110.4 16.04 16.04 0 0 1-6.95-12.6 39.83 39.83 0 0 1 11.7-29.81l21.06-21.06a16.06 16.06 0 0 1 20.58-1.73 152.48 152.48 0 0 1 20.52 17.2zM467.55 44.44c-59.26-59.26-155.7-59.27-214.96 0l-67.2 67.2-.36.37c-58.57 58.9-59.39 154.78.36 214.59a152.45 152.45 0 0 0 20.52 17.2 16.07 16.07 0 0 0 20.58-1.74l21.06-21.05a39.83 39.83 0 0 0 11.7-29.8 16.04 16.04 0 0 0-6.95-12.61 71.98 71.98 0 0 1-10.34-110.4l67.2-67.2c28.23-28.23 74.3-28.06 102.32.52 27.75 28.3 26.87 73.93-1.15 101.96l-13.1 13.09a16.1 16.1 0 0 0-3.77 16.6c5.86 17.2 9.04 35 9.69 52.73.5 13.9 17.45 20.44 27.29 10.6l37.1-37.1c59.28-59.26 59.28-155.7 0-214.96z"></path>
24+
</svg>
25+
</LinkTo>
2126
</h3>
2227
</DeprecationArticle>
2328
{{/each}}

app/templates/error.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{page-title "Page Not Found"}}
2+
3+
<article class="whoops">
4+
<img src="/images/stinky-fish.png" alt="tomster stinky fish"/>
5+
<div class="whoops__message">
6+
<h2>Ack! 404 friend, you're in the wrong place</h2>
7+
<LinkTo @route='index'>Click here to go home</LinkTo>
8+
</div>
9+
</article>

app/templates/index.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
<li class='list-unstyled' data-test-ember-5-link>
5353
<LinkTo @route='ember' @model='v5.x'>v5.x</LinkTo>
5454
</li>
55+
<li class='list-unstyled' data-test-ember-6-link>
56+
<LinkTo @route='ember' @model='v6.x'>v6.x</LinkTo>
57+
</li>
5558
</ul>
5659
</li>
5760
<li class='item list-unstyled'>
@@ -75,6 +78,12 @@
7578
@models={{array 'ember-cli' 'v5.x'}}
7679
>v5.x</LinkTo>
7780
</li>
81+
<li class='list-unstyled' data-test-ember-cli-6-link>
82+
<LinkTo
83+
@route='show'
84+
@models={{array 'ember-cli' 'v6.x'}}
85+
>v6.x</LinkTo>
86+
</li>
7887
</ul>
7988
</li>
8089
<li class='item list-unstyled'>

config/fastboot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global atob */
21
module.exports = function () {
32
return {
43
buildSandboxGlobals(defaultGlobals) {

content/ember-cli/v4/ember-cli-blacklist-whitelist-build-options.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ displayId: ember-cli.blacklist-whitelist-build-options
99
Using the `blacklist` and `whitelist` build options has been deprecated. Please
1010
use `exclude` and `include` respectively instead.
1111

12-
```diff
13-
// ember-cli-build.js
14-
12+
```js {data-filename="ember-cli-build.js" data-diff="-4,+5"}
1513
module.exports = function (defaults) {
1614
const app = new EmberApp(defaults, {
1715
addons: {
18-
- blacklist: ['addon-name'],
19-
+ exclude: ['addon-name'],
16+
blacklist: ['addon-name'],
17+
exclude: ['addon-name'],
2018
},
2119
};
2220
};

content/ember-cli/v5/ember-cli-output-paths-build-option.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ Using the `outputPaths` build option is deprecated, as output paths will no long
1010

1111
To resolve the deprecation, please remove the `outputPaths` build option from your `ember-cli-build.js` file:
1212

13-
```diff
13+
```js {data-diff="-3,-4,-5,-6,-7"}
1414
module.exports = function (defaults) {
1515
const app = new EmberApp(defaults, {
16-
- outputPaths: {
17-
- app: {
18-
- js: `/assets/foo.js`,
19-
- },
20-
- },
16+
outputPaths: {
17+
app: {
18+
js: `/assets/foo.js`,
19+
},
20+
},
2121
};
2222
};
2323
```
2424
2525
And update your `app/index.html` file accordingly:
2626
27-
```diff
27+
```html {data-diff="-20,+21"}
2828
<!DOCTYPE html>
2929
<html>
3030
<head>
@@ -44,8 +44,8 @@ And update your `app/index.html` file accordingly:
4444
{{content-for "body"}}
4545

4646
<script src="{{rootURL}}assets/vendor.js"></script>
47-
- <script src="{{rootURL}}assets/foo.js"></script>
48-
+ <script src="{{rootURL}}assets/my-app-name.js"></script>
47+
<script src="{{rootURL}}assets/foo.js"></script>
48+
<script src="{{rootURL}}assets/my-app-name.js"></script>
4949

5050
{{content-for "body-footer"}}
5151
</body>

0 commit comments

Comments
 (0)