-
Notifications
You must be signed in to change notification settings - Fork 7
/
ember-cli-build.js
116 lines (109 loc) · 4 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*jshint node:true*/
/* global require, module */
var EmberApp = require("ember-cli/lib/broccoli/ember-app");
var webRelease =
process.env.EMBER_CLI_CORDOVA === "0" &&
["production", "staging", "preview"].indexOf(process.env.ENVIRONMENT) !== -1;
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
SRI: {
enabled: webRelease
},
sourcemaps: {
enabled: true,
extensions: ["js"]
},
minifyJS: {
options: {
exclude: ["**/*.js"]
}
},
fingerprint: {
extensions: ["js", "css", "png", "jpg", "gif", "map"],
exclude: ["images/stock.png"],
enabled: webRelease
},
gzip: {
keepUncompressed: true,
extensions: ["js", "css", "map", "ttf", "ott", "eot", "svg"],
enabled: webRelease
},
sassOptions: {
extension: "scss"
},
"ember-cli-babel": {
includePolyfill: true
}
});
app.import("bower_components/moment/moment.js");
app.import(
"bower_components/moment-timezone/builds/moment-timezone-with-data.js"
);
app.import("bower_components/pickadate/lib/picker.js");
app.import("bower_components/pickadate/lib/picker.date.js");
app.import("bower_components/pickadate/lib/picker.time.js");
app.import("bower_components/pickadate/lib/themes/default.css");
app.import("bower_components/pickadate/lib/themes/default.date.css");
app.import("bower_components/pickadate/lib/themes/default.time.css");
app.import("bower_components/slick-carousel/slick/ajax-loader.gif");
app.import("bower_components/slick-carousel/slick/slick-theme.css");
app.import("bower_components/slick-carousel/slick/slick.css");
app.import("bower_components/slick-carousel/slick/slick.js");
app.import("bower_components/slick-carousel/slick/fonts/slick.eot", {
destDir: "fonts"
});
app.import("bower_components/slick-carousel/slick/fonts/slick.svg", {
destDir: "fonts"
});
app.import("bower_components/slick-carousel/slick/fonts/slick.ttf", {
destDir: "fonts"
});
app.import("bower_components/slick-carousel/slick/fonts/slick.woff", {
destDir: "fonts"
});
app.import("bower_components/lightgallery/src/css/lightgallery.css");
app.import("bower_components/lightgallery/src/css/lg-transitions.css");
app.import("bower_components/lightgallery/src/js/lightgallery.js");
app.import("bower_components/lightgallery/src/js/lg-zoom.js");
app.import("bower_components/lightgallery/src/fonts/lg.eot", {
destDir: "fonts"
});
app.import("bower_components/lightgallery/src/fonts/lg.svg", {
destDir: "fonts"
});
app.import("bower_components/lightgallery/src/fonts/lg.ttf", {
destDir: "fonts"
});
app.import("bower_components/lightgallery/src/fonts/lg.woff", {
destDir: "fonts"
});
app.import("bower_components/lightgallery/src/img/loading.gif", {
destDir: "/img"
});
app.import("bower_components/foundation/js/foundation/foundation.js");
app.import("bower_components/foundation/js/foundation/foundation.reveal.js");
app.import("bower_components/foundation/js/foundation/foundation.topbar.js");
app.import(
"bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js"
);
app.import(
"bower_components/blueimp-file-upload/js/jquery.iframe-transport.js"
);
app.import("bower_components/blueimp-file-upload/js/jquery.fileupload.js");
app.import("bower_components/blueimp-load-image/js/load-image.all.min.js");
app.import("bower_components/cloudinary/js/jquery.cloudinary.js");
app.import("bower_components/cloudinary/js/canvas-to-blob.min.js");
app.import(
"bower_components/blueimp-file-upload/js/jquery.fileupload-process.js"
);
app.import(
"bower_components/blueimp-file-upload/js/jquery.fileupload-image.js"
);
app.import(
"bower_components/blueimp-file-upload/js/jquery.fileupload-validate.js"
);
app.import("bower_components/qrcode/lib/qrcode.min.js");
app.import("bower_components/cloudinary/js/jquery.cloudinary.js");
app.import("bower_components/socket.io-client/socket.io.js");
return app.toTree();
};