Add a generate script to generate the googleapis libraries. This code is taken from the discoveryapis_generator and moved here since it was specific to the googleapis generation. R=kustermann@google.com, sgjesse@google.com BUG= Review URL: https://codereview.chromium.org//998343002
Repository for building the googleapis and googleapis_beta packages.
Workflow:
Run pub upgrade in this directory:
$ rm -rf .pub $ pub upgrade
Download & generate APIs using the config.yaml configuration:
$ dart bin/generate.dart run_config
Diff with previous APIs and determine whether to do minor or major version update. Update CHANGELOG.md files in resources/.
Update config.yaml with new version and generate again.
Run tests:
$ pub global activate test_runner $ pushd generated/googleapis $ pub get $ pub global run test_runner $ cd ../googleapis_beta $ pub get $ pub global run test_runner $ popd
Commit downloaded discovery documents and generated packages.
Upload packages to pub.