OLD | NEW |
1 ## Google Cloud Platform | 1 ## Google Cloud Platform |
2 | 2 |
3 Repository for building the googleapis packages | 3 Repository for building the googleapis packages |
4 | 4 |
5 ### Manual process | 5 ### Manual process |
6 | 6 |
7 This should be automated, but here is the current workflow | 7 Here is the current workflow of generating new APIs |
8 | 8 |
9 - Clone the GitHub repro | 9 - Maybe update 'pubspec.yaml' with new commit hash of the generator. |
10 https://github.com/dart-lang/discovery_api_dart_client_generator | |
11 - Checkout the experimental branch | |
12 - Generate from config file | |
13 | 10 |
14 $ dart ../discovery_api_dart_client_generator/bin/generate.dart run_config | 11 $ vim pubspec.yaml |
15 | 12 |
16 - Downloaded discovery documents directory 'discovery' | 13 - Run 'pub upgrade' in this directory: |
17 - Generated packages in directory 'generated' | 14 |
| 15 $ rm -rf .pub |
| 16 $ pub upgrade |
| 17 |
| 18 - Download & Generate APIs using the config.yaml configuration: |
| 19 |
| 20 $ pub run discovery_api_client_generator:generate run_config |
18 | 21 |
19 - Diff with previous apis and determine wheter to do minor or major version | 22 - Diff with previous apis and determine wheter to do minor or major version |
20 update | 23 update |
| 24 |
21 - Update config.yaml with new version and generate again | 25 - Update config.yaml with new version and generate again |
| 26 |
22 - Run tests | 27 - Run tests |
23 | 28 |
| 29 - Commit downloaded discovery documents and generated packages |
| 30 |
24 - Upload packages to pub | 31 - Upload packages to pub |
25 - Commit downloaded discovery documents and generated packages | |
OLD | NEW |