/* jshint node: true */
'use strict';
var Funnel = require('broccoli-funnel');
var mergeTrees = require('broccoli-merge-trees');
var path = require('path');

module.exports = {
  name: 'ember-cli-daterangepicker',

  included: function(app) {
    this._super.included.apply(this, arguments);

    var daterangepickerPath = path.dirname(require.resolve('bootstrap-daterangepicker'));
    this.options = { daterangepickerPath: daterangepickerPath };

    var vendor = this.treePaths.vendor;
    this.app.import(vendor + '/bootstrap-daterangepicker/daterangepicker.js');
    this.app.import(vendor + '/bootstrap-daterangepicker/daterangepicker.css');
  },

  treeForVendor: function(vendorTree) {
    var trees = [];
    var options = this.options;

    if (vendorTree) {
      trees.push(vendorTree);
    }

    trees.push(new Funnel(options.daterangepickerPath, {
      destDir: 'bootstrap-daterangepicker',
      include: [new RegExp(/\.js$|\.css/)],
      exclude: ['moment', 'moment.min', 'package', 'website'].map(function(key) {
        return new RegExp(key + '\.js$');
      })
    }));

    return mergeTrees(trees);
  }
};

@@ -282,24 +282,69 @@
 rguments);%0A%0A
+    if (!process.env.EMBER_CLI_FASTBOOT) %7B%0A  
     var date
@@ -421,24 +421,26 @@
 ker'));%0A    
+  
 this.options
@@ -489,16 +489,18 @@
 ath %7D;%0A%0A
+  
     var 
@@ -531,24 +531,26 @@
 vendor;%0A    
+  
 this.app.imp
@@ -612,24 +612,26 @@
 r.js');%0A    
+ 
+ 
 this.app.imp
@@ -694,16 +694,22 @@
 .css');%0A
+    %7D%0A
   %7D,%0A%0A  

Add fastboot support closes #39