Skip to content

Instantly share code, notes, and snippets.

@ef4
Created May 10, 2019 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ef4/1aefc923d0ef1a12fe5437a57e6dfb98 to your computer and use it in GitHub Desktop.
Save ef4/1aefc923d0ef1a12fe5437a57e6dfb98 to your computer and use it in GitHub Desktop.
let writeFile = require('broccoli-file-creator');
treeForPublic: function() {
const publicTree = this._super.treeForPublic.apply(this, arguments);
const trees = [];
if (publicTree) {
trees.push(publicTree);
}
trees.push(writeFile('the-settings-file.json', this.whateverTheSettingsAre());
return mergeTrees(trees);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment