mardi 16 juin 2015

Adding Ember-highcharts options to Brocfile.js

I'm attempting to use the Ember-highcharts addon and include the HighStock module.

In the instructions, it says:

This addon will use Highcharts by default, if you want to use Highstocks, Highmaps and/or Highcharts-more, add this options to your Brocfile.js:

var app = new EmberApp({
  ---
  emberHighCharts: {
    includeHighCharts: false,
    includeHighStock: true,
    includeHighMaps: true,
    includeHighChartsMore: true
  }
  ---
});

My Brocfile.js currently looks like this:

/* global require, module */

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

var app = new EmberApp();

app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot', {
    destDir: 'fonts/bootstrap'
});
app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf', {
    destDir: 'fonts/bootstrap'
});
app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg', {
    destDir: 'fonts/bootstrap'
});
app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff', {
    destDir: 'fonts/bootstrap'
});
app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2', {
    destDir: 'fonts/bootstrap'
});

app.import('bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js');
app.import('bower_components/moment/moment.js');

module.exports = app.toTree();

so I tried changing it to this:

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

var app = new EmberApp({
  emberHighCharts: {
    includeHighCharts: true,
    includeHighStock: true,
    includeHighMaps: false,
    includeHighChartsMore: false
  }
});

app.import('bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot', {

...

But that only seems to have broken my Bootstrap javascript.

Can anyone point me in the right direction?

Thanks




Aucun commentaire:

Enregistrer un commentaire