Skip to content

Commit fdb6954

Browse files
authored
[sync] 2025/05/13 (#1566)
2 parents ce973c8 + 1f58498 commit fdb6954

File tree

945 files changed

+8971
-11263
lines changed

Some content is hidden

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

945 files changed

+8971
-11263
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
submodules: recursive
7979
- name: Enable Corepack
8080
run: npm i -g corepack@latest && corepack enable
81-
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
81+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
8282
with:
8383
node-version: ${{ env.NODE_VERSION }}
8484
cache: 'pnpm'
@@ -133,7 +133,7 @@ jobs:
133133
fetch-depth: 0
134134
- name: Enable Corepack
135135
run: npm i -g corepack@latest && corepack enable
136-
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
136+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
137137
with:
138138
node-version: ${{ env.NODE_VERSION }}
139139
cache: 'pnpm'

.github/workflows/stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fetch-depth: 0
2828
- name: Enable Corepack
2929
run: npm i -g corepack@latest && corepack enable
30-
- uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
30+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
3131
with:
3232
node-version: ${{ env.NODE_VERSION }}
3333
cache: 'pnpm'

README.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,11 @@ built with [Eleventy][] and hosted on [Firebase][].
1515
[Flutter]: https://docs.flutter.dev/
1616
[Repo on GitHub Actions]: https://github.com/flutter/website/actions?query=workflow%3Abuild+branch%3Amain
1717

18-
<a href="https://idx.google.com/import?url=https%3A%2F%2Fgithub.com%2Fflutter%2Fwebsite">
19-
<picture>
20-
<source
21-
media="(prefers-color-scheme: dark)"
22-
srcset="https://cdn.idx.dev/btn/open_dark_32.svg">
23-
<source
24-
media="(prefers-color-scheme: light)"
25-
srcset="https://cdn.idx.dev/btn/open_light_32.svg">
26-
<img
27-
height="32"
28-
alt="Open in IDX"
29-
src="https://cdn.idx.dev/btn/open_purple_32.svg">
30-
</picture>
18+
<a href="https://studio.firebase.google.com/import?url=https%3A%2F%2Fgithub.com%2Fflutter%2Fwebsite">
19+
<img
20+
height="32"
21+
alt="Open in Firebase Studio"
22+
src="https://cdn.firebasestudio.dev/btn/open_blue_32.svg">
3123
</a>
3224

3325
## Issues, bugs, and requests
@@ -129,7 +121,7 @@ If you prefer, you can use a version manager such as [nvm][],
129121
and run `nvm install` from the repository's root directory.
130122

131123
If you already have Node installed, verify it's available on your path
132-
and already the latest stable version _(currently `22.12` or later)_:
124+
and already the latest stable version _(currently `22.14` or later)_:
133125

134126
```console
135127
node --version
@@ -344,14 +336,14 @@ you can build a full version and upload it to Firebase.
344336
- Head back to your local terminal and verify that you're logged in.
345337

346338
```console
347-
firebase login
339+
npm exec -- firebase-tools login
348340
```
349341

350342
- Ensure that your project exists and activate that project:
351343

352344
```console
353-
firebase projects:list
354-
firebase use <your-project>
345+
npm exec -- firebase-tools projects:list
346+
npm exec -- firebase-tools use <your-project>
355347
```
356348

357349
2. From the root directory of the repository, build the site:
@@ -366,7 +358,7 @@ you can build a full version and upload it to Firebase.
366358
3. Deploy to your activated Firebase project's default hosting site:
367359

368360
```console
369-
firebase deploy --only hosting
361+
npm exec -- firebase-tools deploy --only hosting
370362
```
371363

372364
4. Navigate to your PR on GitHub and include the link of the staged version.

dash_site

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
REQUIRED_DART_VERSION="3.7"
44
REQUIRED_NODE_VERSION="22.11"
5-
REQUIRED_PNPM_VERSION="9.12"
5+
REQUIRED_PNPM_VERSION="10.4"
66

77
# Check that the 'dart' command is available on the user's path.
88
if ! command -v dart &> /dev/null; then

eleventy.config.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { markdown } from './src/_11ty/plugins/markdown.js';
88
import { configureHighlighting } from './src/_11ty/plugins/highlight.js';
99
import { UserConfig } from '@11ty/eleventy';
1010

11-
import minifier from 'html-minifier-terser';
11+
import swcHtml from '@swc/html';
1212
import yaml from 'js-yaml';
1313
import { EleventyRenderPlugin } from '@11ty/eleventy';
1414

@@ -96,12 +96,18 @@ export default function (eleventyConfig: UserConfig) {
9696
if (this.page.outputPath && this.page.outputPath.endsWith('.html')) {
9797
// Minify the page's content if it's an HTML file.
9898
// Other options can be enabled, but each should be tested.
99-
return await minifier.minify(content, {
100-
useShortDoctype: true,
99+
100+
const minifiedHtml = await swcHtml.minify(content, {
101+
scriptingEnabled: true,
101102
removeComments: true,
102-
collapseWhitespace: true,
103-
minifyJS: true,
103+
collapseWhitespaces: 'smart',
104+
removeRedundantAttributes: 'smart',
105+
minifyCss: true,
106+
minifyConditionalComments: true,
107+
quotes: true,
104108
});
109+
110+
return minifiedHtml.code;
105111
}
106112

107113
return content;

examples/app-architecture/offline_first/lib/domain/model/user_profile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ part 'user_profile.freezed.dart';
44

55
// #docregion UserProfile
66
@freezed
7-
class UserProfile with _$UserProfile {
7+
abstract class UserProfile with _$UserProfile {
88
const factory UserProfile({
99
required String name,
1010
required String photoUrl,

0 commit comments

Comments
 (0)