generator-abbott
Version:
Yeoman Generator for the Abbott Platform
9 lines (8 loc) • 318 B
JavaScript
const platforms = {};
<% if ((settings.answers.chatPlatforms) && (settings.answers.chatPlatforms.length > 0)) { -%>
<% settings.answers.chatPlatforms.forEach((chatKey) => { -%>
platforms.<%= chatKey %> = <%- JSON.stringify(settings.config.platforms[chatKey]) %>;
<%= %>
<% }); -%>
<% } -%>
module.exports = platforms;