-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathember-cli-build.js
86 lines (77 loc) · 3.55 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
85
86
/*jshint node:true*/
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
jscsOptions: {
enabled: true,
esnext: true,
configPath: './.jscsrc'
},
lessOptions: {
paths: [
'bower_components/semantic-ui'
]
},
SemanticUI: {
import: {
css: false,
javascript: true,
images: false,
fonts: true
}
},
fingerprint: {
exclude: [
'images/layers-2x.png',
'images/layers.png',
'images/marker-icon-2x.png',
'images/marker-icon.png',
'images/marker-shadow.png',
'images/popupMarker.png',
'**/leaflet.css'
]
},
// Disable processImport https://github.com/jakubpawlowicz/clean-css/issues/755.
minifyCSS: {
options: {
processImport: false
}
}
});
app.import('vendor/font-icon.css');
app.import('vendor/fonts/icons.eot', { destDir: 'assets/fonts' });
app.import('vendor/fonts/icons.otf', { destDir: 'assets/fonts' });
app.import('vendor/fonts/icons.svg', { destDir: 'assets/fonts' });
app.import('vendor/fonts/icons.ttf', { destDir: 'assets/fonts' });
app.import('vendor/fonts/icons.woff', { destDir: 'assets/fonts' });
app.import('vendor/fonts/icons.woff2', { destDir: 'assets/fonts' });
app.import('vendor/fonts/crim.eot', { destDir: 'assets/fonts' });
app.import('vendor/fonts/crim.svg', { destDir: 'assets/fonts' });
app.import('vendor/fonts/crim.ttf', { destDir: 'assets/fonts' });
app.import('vendor/fonts/crim.woff', { destDir: 'assets/fonts' });
app.import('vendor/fonts/crim.woff2', { destDir: 'assets/fonts' });
app.import('vendor/serviceImages/close.png', { destDir: 'assets/themes/blue-sky/assets/images' });
app.import('vendor/serviceImages/close-hover.png', { destDir: 'assets/themes/blue-sky/assets/images' });
app.import('vendor/serviceImages/plus.png', { destDir: 'assets/themes/blue-sky/assets/images' });
app.import('vendor/serviceImages/minus.png', { destDir: 'assets/themes/blue-sky/assets/images' });
app.import('vendor/serviceImages/header-bgw.png', { destDir: 'assets/themes/orange/assets/images' });
app.import('vendor/serviceImages/bgw-head-calendar.png', { destDir: 'assets/themes/orange/assets/images' });
app.import('vendor/api-tests/api-test-map.html', { destDir: 'assets/api-tests' });
app.import('vendor/api-tests/api-test-odata-layer.html', { destDir: 'assets/api-tests' });
// guideline-icons
const ghostThemeAssetsDir = 'vendor';
app.import(`${ghostThemeAssetsDir}/guideline-icons.css`);
app.import(`${ghostThemeAssetsDir}/fonts/guideline-icons/guideline-icons.eot`, { destDir: 'assets/fonts/guideline-icons' });
app.import(`${ghostThemeAssetsDir}/fonts/guideline-icons/guideline-icons.ttf`, { destDir: 'assets/fonts/guideline-icons' });
app.import(`${ghostThemeAssetsDir}/fonts/guideline-icons/guideline-icons.woff`, { destDir: 'assets/fonts/guideline-icons' });
app.import(`${ghostThemeAssetsDir}/fonts/guideline-icons/guideline-icons.woff2`, { destDir: 'assets/fonts/guideline-icons' });
app.import(`${ghostThemeAssetsDir}/fonts/guideline-icons/guideline-icons.svg`, { destDir: 'assets/fonts/guideline-icons' });
/*
This build file specifies the options for the dummy test app of this
addon, located in `/tests/dummy`
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 app.toTree();
};