Files
threshold-ui/ui/admin/ember-cli-build.js
T

59 lines
1.5 KiB
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2020-05-18 17:02:09 -04:00
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
2021-05-11 15:29:46 -04:00
hinting: false,
2020-12-09 14:07:39 -05:00
'ember-cli-babel': {
2021-03-05 17:27:00 -05:00
includeExternalHelpers: true,
2020-12-09 14:07:39 -05:00
},
'ember-simple-auth': {
useSessionSetupMethod: true,
},
2020-05-18 17:02:09 -04:00
babel: {
sourceMaps: 'inline',
},
sourcemaps: {
enabled: true,
extensions: ['js'],
},
2020-11-18 19:18:34 -05:00
svg: {
2021-03-05 17:27:00 -05:00
paths: ['../../addons/core/public'],
},
2023-09-26 14:21:20 -07:00
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
},
2020-05-18 17:02:09 -04:00
});
2020-09-28 14:41:40 -04:00
// Only import when in development or test mode
if (app.env.match(/(development)|(test)/i)) {
app.import('node_modules/clipboard/dist/clipboard.js');
2020-11-16 15:08:59 -05:00
} else {
2020-09-28 14:41:40 -04:00
app.import('node_modules/clipboard/dist/clipboard.min.js');
}
2020-05-18 17:02:09 -04: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.
return app.toTree();
};