travis-web/ember-cli-build.js
Piotr Sarnacki c6a5db87a4 Add babel-polyfill
Babel will not work on older browser with polyfilling some of the
features, that's why we need to include it.
2015-12-15 18:46:32 +01:00

46 lines
1.3 KiB
JavaScript

/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var fingerprint,
assetsHost;
if (process.env.DISABLE_FINGERPRINTS) {
fingerprint = false;
} else {
fingerprint = {
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg']
};
if (assetsHost = process.env.ASSETS_HOST) {
if (assetsHost.substr(-1) !== '/') {
assetsHost = assetsHost + '/'
}
fingerprint.prepend = assetsHost
}
}
var app = new EmberApp({
fingerprint: fingerprint,
vendorFiles: {
// next line is needed to prevent ember-cli to load
// handlebars (it happens automatically in 0.1.x)
'handlebars.js': null
}
});
app.import('vendor/babel-polyfill.js', { prepend: true });
app.import('bower_components/pusher/dist/pusher.js');
app.import('bower_components/jquery-timeago/jquery.timeago.js');
app.import('bower_components/visibilityjs/lib/visibility.core.js');
app.import('bower_components/visibilityjs/lib/visibility.timers.js');
app.import('bower_components/JavaScript-MD5/js/md5.js');
app.import('vendor/ansiparse.js');
app.import('vendor/log.js');
app.import('vendor/customerio.js');
app.import('bower_components/moment/moment.js');
return app.toTree();
};