-
-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathember-cli-build.js
84 lines (73 loc) · 1.85 KB
/
ember-cli-build.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { maybeEmbroider } = require('@embroider/test-setup');
const urls = require('./lib/prember-urls');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
minifyJS: {
enabled: false,
},
snippetPaths: ['snippets'],
snippetSearchPaths: ['app'],
'ember-prism': {
components: ['javascript', 'typescript', 'bash', 'markup'],
},
'ember-cli-babel': {
enableTypeScriptTransform: true,
},
emberCliFontAwesome: {
useScss: true,
},
autoImport: {
forbidEval: true,
webpack: {
// Webpack won't auto-detect, because of "maintained node versions" in config/targets.js
target: 'web',
},
},
prember: {
urls,
// GitHub Pages uses this filename to serve 404s
emptyFile: '404.html',
},
babel: {
plugins: [
require.resolve('ember-concurrency/async-arrow-task-transform'),
],
},
});
/*
This build file specifies the options for the test app of this addon.
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/
return maybeEmbroider(app, {
packageRules: [
{
package: 'test-app',
components: {
'{{e-c-test}}': {
safeToIgnore: true,
},
'{{inner-component}}': {
safeToIgnore: true,
},
'{{my-component}}': {
safeToIgnore: true,
},
'{{test-swallow-error}}': {
safeToIgnore: true,
},
'{{test-async-arrow-task}}': {
safeToIgnore: true,
},
},
},
],
skipBabel: [
{
package: 'qunit',
},
],
});
};