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
6 files changed
tree: aa2a8c4a6773a2416d830ac49557c1256597e9b7
  1. bin/
  2. discovery/
  3. generated/
  4. lib/
  5. resources/
  6. .gitignore
  7. AUTHORS
  8. codereview.settings
  9. config.yaml
  10. LICENSE
  11. PATENTS
  12. pubspec.lock
  13. pubspec.yaml
  14. README.md
README.md

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.