-
Notifications
You must be signed in to change notification settings - Fork 5
/
ember-cli-build.js
73 lines (61 loc) · 2.06 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
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var Funnel = require('broccoli-funnel');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
fingerprint: {
exclude: ['pdf.worker.js']
},
svg: {
paths: [
'public/svg'
]
}
});
var scssFiles = new Funnel('app/styles', {
srcDir: '/',
include: ['colors.scss', 'color-definitions.scss'],
destDir: '/scss-files'
});
var PDFJS = new Funnel('bower_components/pdfjs-dist/build',{
srcDir: '/',
include: ['pdf.js','pdf.worker.js'],
destDir: '/assets'
});
var PDFJSExtras = new Funnel('bower_components/pdfjs-dist/web',{
srcDir: '/',
include: ['compatibility.js'],
destDir: '/assets'
});
var PDFJSCmaps = new Funnel('bower_components/pdfjs-dist/cmaps',{
srcDir: '/',
include: ['**/*.bcmap'],
destDir: '/assets/web/cmaps'
});
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/bootstrap/dist/css/bootstrap.css.map', {
destDir: 'assets'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff', {
destDir: 'fonts'
});
app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2', {
destDir: 'fonts'
});
if (!process.env.EMBER_CLI_FASTBOOT) {
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('bower_components/pdfjs-dist/build/pdf.js');
app.import('bower_components/pdfjs-dist/web/pdf_viewer.css');
app.import('bower_components/pdfjs-dist/web/pdf_viewer.js');
}
app.import('bower_components/moment/moment.js');
return app.toTree([scssFiles, PDFJS, PDFJSExtras, PDFJSCmaps]);
};