Skip to content

Commit

Permalink
Update dart_services README.md (#3115)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
johnpryan authored Jan 8, 2025
1 parent 945d461 commit ad7221e
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions pkgs/dart_services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ 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. These files are located in the
`artifacts/` directory.

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_<CHANNEL>.yaml`
Expand All @@ -58,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_<CHANNEL>.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
Expand Down

0 comments on commit ad7221e

Please sign in to comment.