message: generateModules for github-auth, untested
diff: @@ -2,15 +2,9 @@ const Handlebars = require('handlebars');
  const { declareInjections } = require('@cardstack/di');
  const template = Handlebars.compile(`
  -define("@cardstack/github-auth/environment", ["exports"], function (exports) {
  - "use strict";
  - Object.defineProperty(exports, "__esModule", {
  - value: true
  - });
  {{#each properties as |property|}}
  - exports.{{property.name}} = "{{property.value}}";
  + export const {{property.name}} = "{{property.value}}";
  {{/each}}
  -});
  `);
  module.exports = declareInjections({
  @@ -19,16 +13,22 @@ module.exports = declareInjections({
  class GithubAuthCodeGenerator {
  - async generateCode() {
  + async generateModules() {
  let activeSources = await this.sources.active();
  let source = Array.from(activeSources.values()).find(s => s.sourceType === '@cardstack/github-auth');
  - if (!source || !source.authenticator) { return; }
  -
  + if (!source || !source.authenticator) {
  + return new Map();
  + } else {
  let { clientId } = source.authenticator;
  -
  - return template({ properties: [{
  + return new Map([[
  + 'environment',
  + template({
  + properties: [{
  name: 'clientId',
  value: clientId,
  - }]});
  + }]
  + })
  + ]]);
  + }
  }
  });
  