Split `run_config` into `run_config download` and `run_config generate`.

R=sgjesse@google.com, wibling@google.com

Review URL: https://codereview.chromium.org//1085593003
5 files changed
tree: ffbbb9456e811c22142cf80022ca28770ccb700a
  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 download

  • Possible reset some of the discovery documents downloaded (e.g. drive, prediction)

  • Generate APIs

    $ dart bin/generate.dart run_config generate

  • 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.

    $ dart bin/generate.dart run_config generate

  • 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.