cms/app-client/ember-cli-build.js
author ymh <ymh.work@gmail.com>
Sat, 06 Aug 2016 21:29:33 +0700
changeset 261 02e2396bcbbc
parent 221 0bee030d7411
child 309 6ab16926b675
permissions -rw-r--r--
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)

/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
    var app = new EmberApp(defaults, {
        // Add options here
        sassOptions: {
            includePaths: [
                'bower_components/bootstrap-sass/assets/stylesheets/'
            ]
        },
        fingerprint: {
            enabled: false
        }
    });

    // Use `app.import` to add additional libraries to the generated
    // output files.
    //
    // If you need to use different assets in different
    // environments, specify an object as the first parameter. That
    // object's keys should be the environment name and the values
    // should be the asset to use in that environment.
    //
    // If the library that you are including contains AMD or ES6
    // modules that you would like to import into your application
    // please specify an object with the list of modules as keys
    // along with the exports of each module as its value.
    app.import('bower_components/popcorn-js/popcorn.js');
    app.import('bower_components/ammap3/ammap/ammap.js');
    app.import('bower_components/ammap3/ammap/maps/js/worldLow.js');
    app.import('bower_components/ammap3/ammap/maps/js/continentsLow.js');
    app.import('bower_components/ammap3/ammap/maps/js/france2016Low.js');
    app.import('vendor/shims/ammaps.js', {
        exports: {
            'ammaps': ['defaults']
        }
    });
    app.import('vendor/shims/popcorn.js', {
        exports: {
            'popcorn': ['defaults']
        }
    });

    return app.toTree();
};