forked from ember-learn/deprecation-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
52 lines (42 loc) · 995 Bytes
/
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
"use strict";
const EmberApp = require("ember-cli/lib/broccoli/ember-app");
let urls = [
"/",
"/v3.x",
"/v2.x",
"/v1.x",
"/ember/v3.x",
"/ember/v2.x",
"/ember/v1.x",
"/ember-data/v2.x",
"/ember-cli/v2.x"
];
module.exports = function(defaults) {
let prepend = "";
let fastlyDomain = process.env.FASTLY_DOMAIN;
if ("FASTLY_DOMAIN" in process.env) {
prepend = `https://${fastlyDomain}/`;
}
let app = new EmberApp(defaults, {
prember: {
urls
},
fingerprint: {
prepend
},
"ember-prism": {
theme: "okaidia",
components: ["scss", "javascript", "handlebars", "http", "json"],
plugins: ["line-numbers", "normalize-whitespace"]
},
"ember-bootstrap": {
bootstrapVersion: 4,
importBootstrapFont: false,
importBootstrapCSS: false
}
});
app.import("node_modules/semver-compare/index.js", {
using: [{ transformation: "cjs", as: "semver-compare" }]
});
return app.toTree();
};