2014-10-30 21:44:22 +01:00
|
|
|
/* global require, module */
|
|
|
|
|
|
|
|
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
|
|
|
|
2014-11-01 18:00:46 +01:00
|
|
|
var app = new EmberApp({
|
2015-01-19 22:48:36 +01:00
|
|
|
// add version information to build as meta tag
|
|
|
|
buildInfoOptions: {
|
|
|
|
metaTemplate: 'version={DESC}'
|
|
|
|
},
|
|
|
|
|
2014-11-01 18:00:46 +01:00
|
|
|
// do not fingerprint webshim
|
|
|
|
fingerprint: {
|
|
|
|
exclude: ['assets/shims']
|
|
|
|
}
|
|
|
|
});
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
// 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({
|
|
|
|
development: 'bower_components/moment/min/moment-with-locales.js',
|
2014-11-01 18:00:46 +01:00
|
|
|
production: 'bower_components/moment/min/moment-with-locales.min.js'
|
2014-10-30 21:44:22 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
app.import({
|
|
|
|
development: 'bower_components/bootstrap/dist/js/bootstrap.js',
|
|
|
|
production: 'bower_components/bootstrap/dist/js/bootstrap.min.js'
|
|
|
|
});
|
2014-11-01 18:00:46 +01:00
|
|
|
app.import({
|
|
|
|
development: 'bower_components/bootstrap/dist/css/bootstrap.css',
|
|
|
|
production: 'bower_components/bootstrap/dist/css/bootstrap.min.css'
|
|
|
|
});
|
|
|
|
if (app.env === 'development') {
|
|
|
|
app.import('bower_components/bootstrap/dist/css/bootstrap.css.map', {
|
|
|
|
destDir: 'assets'
|
|
|
|
});
|
|
|
|
}
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
app.import('bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js');
|
2014-11-06 21:22:00 +01:00
|
|
|
app.import('bower_components/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js');
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
app.import('bower_components/ember-easyForm/index.js');
|
|
|
|
|
|
|
|
app.import('bower_components/ember-i18n/lib/i18n.js');
|
|
|
|
app.import('bower_components/ember-i18n/lib/i18n-plurals.js');
|
|
|
|
|
|
|
|
app.import({
|
|
|
|
development: 'bower_components/floatThead/dist/jquery.floatThead.js',
|
|
|
|
production: 'bower_components/floatThead/dist/jquery.floatThead.min.js'
|
|
|
|
});
|
|
|
|
|
|
|
|
app.import({
|
|
|
|
development: 'bower_components/webshim/js-webshim/dev/polyfiller.js',
|
|
|
|
production: 'bower_components/webshim/js-webshim/minified/polyfiller.js'
|
|
|
|
});
|
|
|
|
|
|
|
|
app.import('bower_components/sjcl/sjcl.js');
|
|
|
|
|
|
|
|
app.import('bower_components/modernizr/modernizr.js');
|
|
|
|
|
2014-11-01 18:00:46 +01:00
|
|
|
var pickFiles = require('broccoli-static-compiler');
|
2015-01-24 14:50:56 +01:00
|
|
|
// include webshim files into dist
|
2014-11-01 18:00:46 +01:00
|
|
|
var webshim = pickFiles('bower_components/webshim/js-webshim/minified/shims', {
|
|
|
|
srcDir: '/',
|
|
|
|
destDir: '/assets/shims'
|
|
|
|
});
|
2014-10-30 21:44:22 +01:00
|
|
|
|
2015-01-24 14:50:56 +01:00
|
|
|
// include dummy data into dist if environment is development or test
|
|
|
|
if (app.env === 'development' || app.env === 'test') {
|
|
|
|
var dummyData = pickFiles('server/dummy', {
|
|
|
|
srcDir: '/',
|
|
|
|
destDir: '/data'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
var mergeTrees = require('broccoli-merge-trees');
|
|
|
|
module.exports = mergeTrees([
|
|
|
|
app.toTree(),
|
|
|
|
webshim,
|
|
|
|
dummyData
|
|
|
|
]);
|