forked from mbabernathy/ember-webrtc-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
31 lines (25 loc) · 769 Bytes
/
index.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
'use strict';
const mergeTrees = require('broccoli-merge-trees');
const WatchedDir = require('broccoli-source').WatchedDir;
const json = require('broccoli-json-module');
module.exports = {
name: 'webrtc-devices',
isDevelopingAddon: function () {
return Boolean(process.env.EWD_DEV_MODE);
},
included: function (app) {
this._super.included(app);
this.app = app;
this.translation = new WatchedDir('translations');
app.import(app.bowerDirectory + '/lodash/lodash.js');
app.import(app.bowerDirectory + '/cheet.js/cheet.min.js');
},
treeForApp: function (tree) {
const trees = [tree];
trees.push(json(tree));
return mergeTrees(trees, { overwrite: true });
},
treeForPublic: function (tree) {
return tree;
}
};