-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathember-cli-build.js
More file actions
37 lines (34 loc) · 992 Bytes
/
ember-cli-build.js
File metadata and controls
37 lines (34 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'use strict';
require('dotenv').config();
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
'ember-cli-babel': { enableTypeScriptTransform: true },
babel: {
plugins: [
require.resolve('ember-concurrency/async-arrow-task-transform'),
// NOTE: put any code coverage plugins last, after the transform.
],
},
'@embroider/macros': {
// this is how you configure your own package
setOwnConfig: {
GITHUB_PAT_CLASSIC: process.env.GITHUB_PAT_CLASSIC,
},
},
});
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
staticEmberSource: true,
skipBabel: [
{
package: 'qunit',
},
],
});
};