From 44bb7a571253fa12ee4b655363796123e8a59659 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Wed, 8 Jan 2025 13:56:19 -0800 Subject: [PATCH 1/3] Update README.md --- pkgs/dart_services/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/dart_services/README.md b/pkgs/dart_services/README.md index f49d55472..cfcb37268 100644 --- a/pkgs/dart_services/README.md +++ b/pkgs/dart_services/README.md @@ -43,6 +43,16 @@ To rebuild the shelf router, run: dart run build_runner build --delete-conflicting-outputs ``` +### Building storage artifacts +Dart services pre-compiles `.dill` files for the Dart SDK and Flutter Web SDK, which +are uploaded to Cloud Storage automatically. + +If you need to re-generate these files, run the following command. + +``` +grind build-storage-artifacts +``` + ### Modifying supported packages Package dependencies are pinned using the `pub_dependencies_.yaml` From b95bd6c20aa5c9d17c1c08bb352f35a24b881c2a Mon Sep 17 00:00:00 2001 From: John Ryan Date: Wed, 8 Jan 2025 13:57:46 -0800 Subject: [PATCH 2/3] Update README.md --- pkgs/dart_services/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/dart_services/README.md b/pkgs/dart_services/README.md index cfcb37268..f428ab982 100644 --- a/pkgs/dart_services/README.md +++ b/pkgs/dart_services/README.md @@ -45,7 +45,8 @@ dart run build_runner build --delete-conflicting-outputs ### Building storage artifacts Dart services pre-compiles `.dill` files for the Dart SDK and Flutter Web SDK, which -are uploaded to Cloud Storage automatically. +are uploaded to Cloud Storage automatically. These files are located in the +`artifacts/` directory. If you need to re-generate these files, run the following command. From 3edac516996ce6b5af7ae893c578fa792e9c3264 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Wed, 8 Jan 2025 14:17:03 -0800 Subject: [PATCH 3/3] Update README.md --- pkgs/dart_services/README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/dart_services/README.md b/pkgs/dart_services/README.md index f428ab982..2b3325ec7 100644 --- a/pkgs/dart_services/README.md +++ b/pkgs/dart_services/README.md @@ -54,6 +54,12 @@ If you need to re-generate these files, run the following command. grind build-storage-artifacts ``` +Or, if you don't have `grind` on your PATH: + +``` +dart tool/grind.dart build-storage-artifacts +``` + ### Modifying supported packages Package dependencies are pinned using the `pub_dependencies_.yaml` @@ -69,11 +75,17 @@ that the dependencies resolve and update the pinned versions specified in the grind build-project-templates ``` -3. Run `pub upgrade` in the Dart or Flutter project in `project_templates/` -4. Run `grind update-pub-dependencies` to overwrite the + Or, if you don't have `grind` on your PATH: + + ``` + dart tool/grind.dart build-project-templates + ``` + +4. Run `pub upgrade` in the Dart or Flutter project in `project_templates/` +5. Run `grind update-pub-dependencies` to overwrite the `tool/dependencies/pub_dependencies_.yaml` file for your current - channel. -5. Repeat the above steps for the latest version of each Flutter channel + channel. Or, if you don't have `grind` on your PATH, `dart tool/grind.dart update-pub-dependencies` +6. Repeat the above steps for the latest version of each Flutter channel (`main`, `beta` and `stable`) ## Redis