-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrocfile.js
68 lines (55 loc) · 2.05 KB
/
Brocfile.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
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var ENV = process.env.EMBER_ENV
var app = new EmberApp({
dotEnv: {
clientAllowedKeys: ['NOT_CI']
},
fingerprint: {
enabled: (ENV != "development")
},
minifyCSS: {
enabled: (ENV != "development")
},
minifyJS: {
enabled: (ENV != "development")
},
sourcemaps: {
enabled: (ENV === "development")
}
});
// Keen pageview tracking prereqs
app.import('bower_components/purl/purl.js');
app.import('bower_components/ua-parser-js/src/ua-parser.js');
app.import('bower_components/uuid-js/lib/uuid.js');
app.import('bower_components/jquery-cookie/jquery.cookie.js');
app.import('bower_components/fastclick/lib/fastclick.js');
app.import('bower_components/moment/moment.js');
app.import('bower_components/timekeeper/lib/timekeeper.js'); // time mocking
app.import('bower_components/pusher/dist/pusher.js');
app.import('bower_components/d3/d3.js');
app.import('bower_components/sweetalert/lib/sweet-alert.js');
app.import('bower_components/sweetalert/lib/sweet-alert.css');
app.import('bower_components/jbox/Source/jBox.js');
app.import('bower_components/jbox/Source/jBox.css');
app.import('bower_components/pickadate/lib/picker.js');
app.import('bower_components/pickadate/lib/picker.date.js');
app.import('bower_components/pickadate/lib/themes/default.css');
app.import('bower_components/pickadate/lib/themes/default.date.css');
app.import('bower_components/select2/select2.js');
app.import('bower_components/select2/select2.css');
app.import({development: 'bower_components/jquery-mockjax/jquery.mockjax.js'});
app.import({development: 'bower_components/jquery-simulate/jquery.simulate.js'});
app.import('bower_components/ember-i18n/lib/i18n.js');
// No Graph for now
// removeFile = require('broccoli-file-remover');
// mergeTrees = require('broccoli-merge-trees');
//
// appTree = app.toTree()
//
// filteredTree = removeFile(appTree, {
// paths: ["assets/flaredown/controllers"],
// });
//
// module.exports = mergeTrees([filteredTree]);
module.exports = app.toTree();