| OLD | NEW |
| 1 Repository for building the [googleapis] and [googleapis_beta] packages. | 1 Repository for building the [googleapis] and [googleapis_beta] packages. |
| 2 | 2 |
| 3 **Workflow:** | 3 **Workflow:** |
| 4 | 4 |
| 5 - Run `pub upgrade` in this directory: | 5 - Run `pub upgrade` in this directory: |
| 6 | 6 |
| 7 $ rm -rf .pub | 7 $ rm -rf .pub |
| 8 $ pub upgrade | 8 $ pub upgrade |
| 9 | 9 |
| 10 - Download & generate APIs using the `config.yaml` configuration: | 10 - Download & generate APIs using the `config.yaml` configuration: |
| 11 | 11 |
| 12 $ dart bin/generate.dart run_config | 12 $ dart bin/generate.dart run_config download |
| 13 |
| 14 - Possible reset some of the discovery documents downloaded (e.g. drive, |
| 15 prediction) |
| 16 |
| 17 - Generate APIs |
| 18 |
| 19 $ dart bin/generate.dart run_config generate |
| 13 | 20 |
| 14 - Diff with previous APIs and determine whether to do minor or major version | 21 - Diff with previous APIs and determine whether to do minor or major version |
| 15 update. Update CHANGELOG.md files in resources/. | 22 update. Update CHANGELOG.md files in resources/. |
| 16 | 23 |
| 17 - Update `config.yaml` with new version and generate again. | 24 - Update `config.yaml` with new version and generate again. |
| 18 | 25 |
| 26 $ dart bin/generate.dart run_config generate |
| 27 |
| 19 - Run tests: | 28 - Run tests: |
| 20 | 29 |
| 21 $ pub global activate test_runner | 30 $ pub global activate test_runner |
| 22 $ pushd generated/googleapis | 31 $ pushd generated/googleapis |
| 23 $ pub get | 32 $ pub get |
| 24 $ pub global run test_runner | 33 $ pub global run test_runner |
| 25 $ cd ../googleapis_beta | 34 $ cd ../googleapis_beta |
| 26 $ pub get | 35 $ pub get |
| 27 $ pub global run test_runner | 36 $ pub global run test_runner |
| 28 $ popd | 37 $ popd |
| 29 | 38 |
| 30 - Commit downloaded discovery documents and generated packages. | 39 - Commit downloaded discovery documents and generated packages. |
| 31 | 40 |
| 32 - Upload packages to pub. | 41 - Upload packages to pub. |
| 33 | 42 |
| 34 [googleapis]: https://pub.dartlang.org/packages/googleapis | 43 [googleapis]: https://pub.dartlang.org/packages/googleapis |
| 35 [googleapis_beta]: https://pub.dartlang.org/packages/googleapis_beta | 44 [googleapis_beta]: https://pub.dartlang.org/packages/googleapis_beta |
| OLD | NEW |