Individual index.html files for each EmberApp

I am trying to have two applications that are connected but have different access points from the server. Currently ember buildreturning to index.htmlat dist/. This happens with the following setting:

/* global require, module */

var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var mergeTrees = require('broccoli-merge-trees');

var app = new EmberApp();
var viewer = new EmberApp({
  storeConfigInMeta: false,
  trees: {
    app: 'viewer',
    templates: 'viewer/templates',
    styles: 'viewer/styles'
  },

  outputPaths: {
    app: {
      css: '/assets/viewer.css',
      js: '/assets/viewer.js'
    },

    vendor: {
      css: '/assets/viewer-vendor.css',
      js: '/assets/viewer-vendor.js'
    }
  }
});

app.import('bower_components/socket.io-client/socket.io.js');
viewer.import('bower_components/socket.io-client/socket.io.js');

module.exports = mergeTrees([viewer.toTree(), app.toTree()], { overwrite: true });

I would also like to indicate the html output path, but after inspecting https://github.com/stefanpenner/ember-cli/blob/master/lib/broccoli/ember-app.js I am not smarter about what I should do. Also using different configurations that actually don't work with errors configPath..:

ENOENT, there is no such file or directory '/Users/user/project/tmp/tree_merger-tmp_dest_dir-fen1Dz3z.tmp/project/config/environment.js'

+4
2

, , ember-cli ( - 0.1.2). . PR: https://github.com/stefanpenner/ember-cli/pull/2523

, , :

app: {
  html: 'my-custom.html'
}

Edit

​​ PR v0.1.3, . .

+1

, . " ember-cli

ember cli

0

All Articles