-
Notifications
You must be signed in to change notification settings - Fork 43
/
ember-cli-build.js
88 lines (84 loc) · 3.62 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
87
88
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var Funnel = require('broccoli-funnel');
module.exports = function(defaults) {
var app = new EmberApp(defaults);
// 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('bower_components/moment/moment.js');
app.import('bower_components/lightbox2/src/js/lightbox.js');
app.import('bower_components/lightbox2/src/css/lightbox.css');
app.import("bower_components/codemirror/lib/codemirror.css");
app.import("bower_components/codemirror/lib/codemirror.js");
app.import("bower_components/codemirror/mode/css/css.js");
app.import("bower_components/codemirror/mode/htmlmixed/htmlmixed.js");
app.import("bower_components/codemirror/mode/javascript/javascript.js");
app.import("bower_components/codemirror/mode/markdown/markdown.js");
app.import("bower_components/codemirror/mode/php/php.js");
app.import("bower_components/codemirror/mode/python/python.js");
app.import("bower_components/codemirror/mode/ruby/ruby.js");
app.import("bower_components/codemirror/mode/shell/shell.js");
app.import("bower_components/codemirror/mode/xml/xml.js");
app.import("bower_components/font-awesome/css/font-awesome.css");
app.import("bower_components/lato/css/lato.min.css");
app.import("bower_components/fira/fira.css");
var fontAwesome = new Funnel('bower_components/font-awesome/fonts', {
srcDir: '/',
destDir: 'fonts'
});
var firaEot = new Funnel('bower_components/fira/eot', {
srcDir: '/',
destDir: 'assets/eot'
});
var firaOtf = new Funnel('bower_components/fira/otf', {
srcDir: '/',
destDir: 'assets/otf'
});
var firaTtf = new Funnel('bower_components/fira/ttf', {
srcDir: '/',
destDir: 'assets/ttf'
});
var firaWoff = new Funnel('bower_components/fira/woff', {
srcDir: '/',
destDir: 'assets/woff'
});
var latoLight = new Funnel('bower_components/lato/font/lato-light', {
srcDir: '/',
destDir: 'font/lato-light'
});
var latoThin = new Funnel('bower_components/lato/font/lato-thin', {
srcDir: '/',
destDir: 'font/lato-thin'
});
var latoRegular = new Funnel('bower_components/lato/font/lato-regular', {
srcDir: '/',
destDir: 'font/lato-regular'
});
var latoMedium = new Funnel('bower_components/lato/font/lato-medium', {
srcDir: '/',
destDir: 'font/lato-medium'
});
var latoBold = new Funnel('bower_components/lato/font/lato-bold', {
srcDir: '/',
destDir: 'font/lato-bold'
});
var latoItalic = new Funnel('bower_components/lato/font/lato-italic', {
srcDir: '/',
destDir: 'font/lato-italic'
});
app.import("bower_components/lightbox2/src/images/close.png", {destDir: '/images'});
app.import("bower_components/lightbox2/src/images/next.png", {destDir: '/images'});
app.import("bower_components/lightbox2/src/images/prev.png", {destDir: '/images'});
app.import("bower_components/lightbox2/src/images/loading.gif", {destDir: '/images'});
return app.toTree([fontAwesome, firaEot, firaOtf, firaTtf, firaWoff, latoThin, latoLight, latoRegular, latoMedium, latoBold, latoItalic]);
};