How to use the ember-cli/lib/commands/build.prototype function in ember-cli

To help you get started, we’ve selected a few ember-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adopted-ember-addons / ember-electron / lib / commands / build.js View on Github external
function buildAvailableOptions() {
  // We don't whitelist options here since this command maps so directly to the
  // base command (just with an extra env variable and different default output
  // path)

  return BuildCommand.prototype.availableOptions.map((option) => {
    // probably doesn't hurt to share un-modified options objects between
    // prototypes, but let's do this just to be safe
    option = Object.assign({}, option);

    if (option.name === 'output-path') {
      option.default = emberBuildPath;
    }
    return option;
  });
}