/* global require, module */

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

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

// Bootstrap
app.import( 'vendor/sl-bootstrap/dist/css/sl-bootstrap.css' );
app.import( 'vendor/sl-bootstrap/dist/css/sl-bootstrap-theme.css' );
app.import( 'vendor/sl-bootstrap/dist/js/sl-bootstrap.min.js' );

// Bootstrap-Datepicker
app.import( 'vendor/bootstrap-datepicker/css/datepicker3.css' );
app.import( 'vendor/bootstrap-datepicker/js/bootstrap-datepicker.js' );

// FontAwesome
app.import( 'vendor/fontawesome/css/font-awesome.min.css' );
var fontawesomeFont = pickFiles( 'vendor/fontawesome/fonts', {
    srcDir: '/',
    files: [ 'fontawesome-webfont.woff' ],
    destDir: '/fonts'
});

// Highcharts
app.import( 'vendor/highcharts/highcharts.js' );

// Moment
app.import( 'vendor/moment/min/moment-with-langs.min.js' );

// Select2
app.import( 'vendor/select2/select2.css' );
app.import( 'vendor/select2/select2-bootstrap.css' );
app.import( 'vendor/select2/select2.min.js' );
var select2Images = pickFiles( 'vendor/select2', {
    srcDir: '/',
    files: [ '*.png', '*.gif' ],
    destDir: '/assets'
});

module.exports = mergeTrees([ app.toTree(), fontawesomeFont, select2Images ]);

@@ -570,24 +570,180 @@
 p.min.js' );
+%0Avar bootstrapCSSMap = pickFiles( 'vendor/sl-bootstrap/dist/css', %7B%0A    srcDir: '/',%0A    files: %5B 'sl-bootstrap-theme.css.map' %5D,%0A    destDir: '/assets'%0A%7D);
 %0A%0A// Bootstr
@@ -1583,16 +1583,33 @@
 oTree(),
+ bootstrapCSSMap,
  fontawe

Add Bootstrap's CSS map file