Skip to content

Commit b030792

Browse files
authored
feat: update origin 20.2.0 (#1047)
1 parent 0dca720 commit b030792

File tree

79 files changed

+6979
-4472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6979
-4472
lines changed

.github/workflows/adev-preview-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
with:
2525
submodules: true
26+
- name: setup pnpm
27+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2628
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2729
with:
2830
node-version-file: '.node-version'
29-
cache: yarn
31+
cache: pnpm
3032
- uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5
3133
with:
3234
bazelisk-cache: true
@@ -43,8 +45,8 @@ jobs:
4345
4446
# CI supports colors but Bazel does not detect it.
4547
common --color=yes
46-
- run: yarn install
47-
- run: yarn build
48+
- run: pnpm install --frozen-lockfile
49+
- run: pnpm run build
4850
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@01c8c16f830d02110c28640aea16f145a7937080
4951
with:
5052
workflow-artifact-name: 'adev-preview'

.github/workflows/adev-production-deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
with:
1717
submodules: true
18+
- name: setup pnpm
19+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
1820
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1921
with:
2022
node-version-file: '.node-version'
21-
cache: yarn
23+
cache: pnpm
2224
- uses: bazel-contrib/setup-bazel@e403ad507104847c3539436f64a9e9eecc73eeec # 0.8.5
2325
with:
2426
bazelisk-cache: true
@@ -35,8 +37,8 @@ jobs:
3537
3638
# CI supports colors but Bazel does not detect it.
3739
common --color=yes
38-
- run: yarn install
39-
- run: yarn build
40+
- run: pnpm install --frozen-lockfile
41+
- run: pnpm run build
4042
- name: Deploy to Firebase Hosting
4143
uses: FirebaseExtended/action-hosting-deploy@0cbcac4740c2bfb00d632f0b863b57713124eb5a # v0.9.0
4244
with:

.github/workflows/ci.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,34 @@ jobs:
1212
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1313
with:
1414
submodules: true
15+
- name: setup pnpm
16+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
1517
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1618
with:
1719
node-version-file: '.node-version'
18-
cache: yarn
19-
- run: yarn install
20-
- run: yarn lint
21-
- run: yarn test
20+
cache: pnpm
21+
- run: pnpm install
22+
- run: pnpm run lint
23+
- run: pnpm run test
2224
build-ubuntu:
2325
runs-on: ubuntu-latest
2426
steps:
2527
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2628
with:
2729
submodules: true
30+
- name: setup pnpm
31+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2832
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2933
with:
3034
node-version-file: '.node-version'
31-
cache: yarn
35+
cache: pnpm
3236
- uses: bazel-contrib/[email protected] # 0.15.0
3337
with:
3438
bazelisk-cache: true
3539
disk-cache: true
3640
repository-cache: true
37-
- run: yarn install
38-
- run: yarn build
41+
- run: pnpm install
42+
- run: pnpm run build
3943
# build-windows:
4044
# runs-on: windows-latest
4145
# steps:

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ $ git clone [email protected]:angular/angular-ja.git
5050
このリポジトリではsubmoduleを使って翻訳元リポジトリと統合しています。初回のビルド時にsubmoduleの同期やビルドディレクトリの初期化が行われます。15分ほどかかることがあるため、気長にお待ちください。
5151

5252
```
53-
$ yarn install
54-
$ yarn build
53+
$ pnpm install
54+
$ pnpm build
5555
```
5656

5757
### 開発用サーバーを使った作業
5858

5959
開発用ローカルサーバーを起動すると、ビルド結果を確認しながら翻訳作業ができます。
6060

6161
```
62-
$ yarn start
62+
$ pnpm start
6363
```
6464

6565
- デフォルトでは `http://localhost:4200` でサーバーが立ち上がります
@@ -68,15 +68,15 @@ $ yarn start
6868
`start` コマンドでは、翻訳用にパッチが適用されたアプリケーションコードを含む `build` ディレクトリを初期化せずに再利用します。初期化して開始したい場合は、 `--init` オプションを指定してください。
6969

7070
```
71-
$ yarn start --init
71+
$ pnpm start --init
7272
```
7373

7474
### 文体チェック・自動修正
7575

7676
textlintを使って文体チェックを行うことができます。次のコマンドで文体チェックを行い、自動修正を行うことができます。
7777

7878
```
79-
$ yarn lint [--fix]
79+
$ pnpm lint [--fix]
8080
```
8181

8282

@@ -85,7 +85,7 @@ $ yarn lint [--fix]
8585
次のコマンドでデプロイ可能な生成物をビルドします。
8686

8787
```
88-
$ yarn build
88+
$ pnpm build
8989
```
9090

9191
ビルドが完了すると、 `build/dist/bin/adev/build` ディレクトリにビルド結果が出力されます。

UPDATE_ORIGIN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GitHub上で `angular/angular` リポジトリのコミットハッシュを入
1717
1で入手したコミットハッシュを指定して、`angular/angular` リポジトリを更新します。
1818

1919
```sh
20-
$ yarn update-origin <commit-hash>
20+
$ pnpm update-origin <commit-hash>
2121
```
2222

2323
コミットハッシュを指定しない場合は、originの更新は行わず、現在のsubmoduleからファイルのコピーを再度実行します。

adev-ja/src/app/core/layout/navigation/navigation.component.en.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
<ul class="adev-mini-menu" cdkMenu>
306306
<li>
307307
<a
308-
[href]="YOUTUBE"
308+
[href]="ngLinks.YOUTUBE"
309309
cdkMenuItem
310310
title="Angular YouTube channel"
311311
target="_blank"
@@ -327,7 +327,7 @@
327327
</li>
328328
<li>
329329
<a
330-
[href]="X"
330+
[href]="ngLinks.X"
331331
cdkMenuItem
332332
title="Angular X (formerly Twitter) profile"
333333
target="_blank"
@@ -349,7 +349,7 @@
349349
</li>
350350
<li>
351351
<a
352-
[href]="BLUESKY"
352+
[href]="ngLinks.BLUESKY"
353353
cdkMenuItem
354354
title="Angular Bluesky profile"
355355
target="_blank"
@@ -370,7 +370,7 @@
370370
</li>
371371
<li>
372372
<a
373-
[href]="MEDIUM"
373+
[href]="ngLinks.MEDIUM"
374374
cdkMenuItem
375375
title="Angular Medium blog"
376376
target="_blank"
@@ -385,7 +385,7 @@
385385
</a>
386386
</li>
387387
<li>
388-
<a [href]="GITHUB" cdkMenuItem title="Angular Github" target="_blank" rel="noopener">
388+
<a [href]="ngLinks.GITHUB" cdkMenuItem title="Angular Github" target="_blank" rel="noopener">
389389
<!-- Github Icon -->
390390
<svg
391391
width="20"
@@ -403,7 +403,7 @@
403403
</a>
404404
</li>
405405
<li>
406-
<a [href]="DISCORD" cdkMenuItem title="Angular Discord" target="_blank" rel="noopener">
406+
<a [href]="ngLinks.DISCORD" cdkMenuItem title="Angular Discord" target="_blank" rel="noopener">
407407
<!-- Discord Icon -->
408408
<svg
409409
xmlns="http://www.w3.org/2000/svg"

adev-ja/src/app/core/layout/navigation/navigation.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
<ul class="adev-mini-menu" cdkMenu>
306306
<li>
307307
<a
308-
[href]="YOUTUBE"
308+
[href]="ngLinks.YOUTUBE"
309309
cdkMenuItem
310310
title="Angular YouTube channel"
311311
target="_blank"
@@ -327,7 +327,7 @@
327327
</li>
328328
<li>
329329
<a
330-
[href]="X"
330+
[href]="ngLinks.X"
331331
cdkMenuItem
332332
title="Angular X (formerly Twitter) profile"
333333
target="_blank"
@@ -349,7 +349,7 @@
349349
</li>
350350
<li>
351351
<a
352-
[href]="BLUESKY"
352+
[href]="ngLinks.BLUESKY"
353353
cdkMenuItem
354354
title="Angular Bluesky profile"
355355
target="_blank"
@@ -370,7 +370,7 @@
370370
</li>
371371
<li>
372372
<a
373-
[href]="MEDIUM"
373+
[href]="ngLinks.MEDIUM"
374374
cdkMenuItem
375375
title="Angular Medium blog"
376376
target="_blank"
@@ -385,7 +385,7 @@
385385
</a>
386386
</li>
387387
<li>
388-
<a [href]="GITHUB" cdkMenuItem title="Angular Github" target="_blank" rel="noopener">
388+
<a [href]="ngLinks.GITHUB" cdkMenuItem title="Angular Github" target="_blank" rel="noopener">
389389
<!-- Github Icon -->
390390
<svg
391391
width="20"
@@ -403,7 +403,7 @@
403403
</a>
404404
</li>
405405
<li>
406-
<a [href]="DISCORD" cdkMenuItem title="Angular Discord" target="_blank" rel="noopener">
406+
<a [href]="ngLinks.DISCORD" cdkMenuItem title="Angular Discord" target="_blank" rel="noopener">
407407
<!-- Discord Icon -->
408408
<svg
409409
xmlns="http://www.w3.org/2000/svg"

adev-ja/src/app/sub-navigation-data.en.ts

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
372372
path: 'guide/routing/lifecycle-and-events',
373373
contentPath: 'guide/routing/lifecycle-and-events',
374374
},
375+
{
376+
label: 'Testing routing and navigation',
377+
path: 'guide/routing/testing',
378+
contentPath: 'guide/routing/testing',
379+
status: 'new',
380+
},
375381
{
376382
label: 'Other routing tasks',
377383
path: 'guide/routing/common-router-tasks',
@@ -382,11 +388,22 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
382388
path: 'guide/routing/routing-with-urlmatcher',
383389
contentPath: 'guide/routing/routing-with-urlmatcher',
384390
},
391+
{
392+
label: 'Rendering strategies',
393+
path: 'guide/routing/rendering-strategies',
394+
contentPath: 'guide/routing/rendering-strategies',
395+
status: 'new',
396+
},
385397
{
386398
label: 'Router reference',
387399
path: 'guide/routing/router-reference',
388400
contentPath: 'guide/routing/router-reference',
389401
},
402+
{
403+
label: 'Route transition animations',
404+
path: 'guide/routing/route-transition-animations',
405+
contentPath: 'guide/routing/route-transition-animations',
406+
},
390407
],
391408
},
392409
{
@@ -522,6 +539,12 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
522539
path: 'guide/testing/pipes',
523540
contentPath: 'guide/testing/pipes',
524541
},
542+
{
543+
label: 'Testing routing and navigation',
544+
path: 'guide/routing/testing',
545+
contentPath: 'guide/routing/testing',
546+
status: 'new',
547+
},
525548
{
526549
label: 'Debugging tests',
527550
path: 'guide/testing/debugging',
@@ -621,16 +644,23 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
621644
},
622645
{
623646
label: 'Animations',
647+
status: 'updated',
624648
children: [
625649
{
626650
label: 'Animating your content',
627651
path: 'guide/animations/css',
628652
contentPath: 'guide/animations/css',
629653
},
654+
{
655+
label: 'Enter and Leave animations',
656+
path: 'guide/animations/enter-and-leave',
657+
contentPath: 'guide/animations/enter-and-leave',
658+
status: 'new',
659+
},
630660
{
631661
label: 'Route transition animations',
632-
path: 'guide/animations/route-animations',
633-
contentPath: 'guide/animations/route-animations',
662+
path: 'guide/routing/route-transition-animations',
663+
contentPath: 'guide/routing/route-transition-animations',
634664
},
635665
],
636666
},
@@ -922,6 +952,11 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
922952
path: 'ecosystem/rxjs-interop/output-interop',
923953
contentPath: 'ecosystem/rxjs-interop/output-interop',
924954
},
955+
{
956+
label: 'Unsubscribing with takeUntilDestroyed',
957+
path: 'ecosystem/rxjs-interop/take-until-destroyed',
958+
contentPath: 'ecosystem/rxjs-interop/take-until-destroyed',
959+
},
925960
],
926961
},
927962
{
@@ -974,6 +1009,12 @@ const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [
9741009
path: 'ecosystem/custom-build-pipeline',
9751010
contentPath: 'ecosystem/custom-build-pipeline',
9761011
},
1012+
{
1013+
label: 'Tailwind',
1014+
path: 'guide/tailwind',
1015+
contentPath: 'guide/tailwind',
1016+
status: 'new',
1017+
},
9771018
{
9781019
label: 'Angular Fire',
9791020
path: 'https://github.com/angular/angularfire#readme',
@@ -1135,6 +1176,10 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
11351176
label: 'Overview',
11361177
path: 'cli/generate',
11371178
},
1179+
{
1180+
label: 'ai-config',
1181+
path: 'cli/generate/ai-config',
1182+
},
11381183
{
11391184
label: 'app-shell',
11401185
path: 'cli/generate/app-shell',

0 commit comments

Comments
 (0)