-
Notifications
You must be signed in to change notification settings - Fork 7
/
ember-cli-build.js
64 lines (56 loc) · 1.44 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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
// Add options here
ace: {
modes: ['handlebars'],
themes: ['monokai'],
useSoftTabs: true,
tabSize: 2,
useWrapMode: false,
},
babel: {
plugins: ['transform-object-rest-spread']
},
'ember-froala-editor': {
plugins: [
'paragraph_format',
'lists',
'link',
'video',
'image',
'url',
'emoticons',
'help',
'fullscreen',
'quote',
'char_counter',
'word_paste',
'draggable',
'align',
],
},
});
// Bootstrap JS and source maps.
app.import('node_modules/bootstrap/dist/js/bootstrap.bundle.min.js');
app.import('node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map', { destDir: 'assets' });
app.import('node_modules/fraction.js/fraction.min.js', {
using: [
{ transformation: 'amd', as: 'fraction.js' }
]
});
app.import('node_modules/filesize/lib/filesize.js', {
using: [
{ transformation: 'amd', as: 'filesize' }
]
});
app.import('node_modules/validator/validator.min.js', {
using: [
{ transformation: 'amd', as: 'validator' }
]
});
app.import('node_modules/highcharts/highcharts.js');
app.import('node_modules/highcharts/modules/exporting.js');
return app.toTree();
};