forked from projectcaluma/ember-caluma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ember-cli-build.js
37 lines (30 loc) · 1.15 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
"use strict";
const EmberAddon = require("ember-cli/lib/broccoli/ember-addon");
const funnel = require("broccoli-funnel");
const sass = require("sass");
module.exports = function (defaults) {
const app = new EmberAddon(defaults, {
sassOptions: { implementation: sass },
snippetPaths: ["tests/dummy/app/snippets"],
babel: {
plugins: ["@babel/plugin-proposal-object-rest-spread"],
},
});
app.import("node_modules/moment/locale/de.js");
app.import("node_modules/moment/locale/de-ch.js");
app.import("node_modules/moment/locale/it.js");
app.import("node_modules/moment/locale/it-ch.js");
app.import("node_modules/moment/locale/fr.js");
app.import("node_modules/moment/locale/fr-ch.js");
app.import("node_modules/typeface-oxygen/index.css");
app.import("node_modules/typeface-oxygen-mono/index.css");
const oxygen = funnel("node_modules/typeface-oxygen/files", {
include: ["*.woff", "*.woff2"],
destDir: "/assets/files/",
});
const oxygenMono = funnel("node_modules/typeface-oxygen-mono/files", {
include: ["*.woff", "*.woff2"],
destDir: "/assets/files/",
});
return app.toTree([oxygen, oxygenMono]);
};