This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ember-cli-build.js
67 lines (57 loc) · 3.04 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
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var pickFiles = require('broccoli-static-compiler');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
fingerprint: {
// tinymce/skins/*.css must be excluded
// Otherways, Ember adds filename hash in production but does not append the hash
// to links, so the browser looks for non-existing file and tinyMCE fails to load.
//exclude: ['tinymce/skins']
enabled: false
}
// Add options here
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import(app.bowerDirectory + '/bootstrap/dist/js/bootstrap.js');
app.import(app.bowerDirectory + '/bootstrap/dist/css/bootstrap.css');
app.import(app.bowerDirectory + '/jquery.livequery/dist/jquery.livequery.min.js');
app.import(app.bowerDirectory + '/cytoscape/dist/cytoscape.min.js');
app.import(app.bowerDirectory + '/qtip2/jquery.qtip.min.js');
app.import(app.bowerDirectory + '/cytoscape-qtip/cytoscape-qtip.js');
app.import(app.bowerDirectory + '/ace-builds/src-min-noconflict/ace.js');
app.import(app.bowerDirectory + '/ace-builds/src-min-noconflict/mode-python.js');
app.import(app.bowerDirectory + '/ace-builds/src-min-noconflict/theme-monokai.js');
app.import(app.bowerDirectory + '/HCaptions/jquery.hcaptions.js');
app.import(app.bowerDirectory + '/qtip2/jquery.qtip.min.css');
app.import(app.bowerDirectory + '/html.sortable/dist/html.sortable.min.js');
app.import(app.bowerDirectory + '/file-saver.js/FileSaver.js');
app.import(app.bowerDirectory + '/lodash/lodash.min.js');
app.import(app.bowerDirectory + '/graphlib/dist/graphlib.core.js');
app.import(app.bowerDirectory + '/dagre/dist/dagre.core.js');
app.import(app.bowerDirectory + '/sticky-kit/jquery.sticky-kit.js');
app.import('vendor/sticky-column.js');
// import the main file
app.import('bower_components/tinymce/tinymce.min.js', {destDir: 'assets/tinymce'});
// import the jquery integration file
app.import('bower_components/tinymce/jquery.tinymce.min.js', {destDir: 'assets/tinymce'});
app.import(app.bowerDirectory + '/moment/locale/cs.js');
// import all the assets (technically you could be more precise in picking just the plugins and themes that you require, but for brevity's sake this will work)
var tinymceAssets = pickFiles('bower_components/tinymce/', {
srcDir: '/',
files: ['**/*.min.js', '**/*.min.css', '**/*.woff', '**/*.ttf'],
destDir: '/tinymce'
});
return app.toTree([tinymceAssets]);
};