Factor out the pubspec.yaml information for generated packages

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//483703003