-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
43 lines (34 loc) · 1.33 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
const path = require('path');
const Funnel = require('broccoli-funnel');
module.exports = {
name: require('./package').name,
isDevelopingAddon: function() {
return true;
},
included(app, parentAddon) {
const target = (parentAddon || app);
const options = target.options[this.name] || {};
target.options.sassOptions = target.options.sassOptions || {};
target.options.sassOptions.includePaths = target.options.sassOptions.includePaths || [];
target.options.sassOptions.includePaths.push(
path.join('node_modules', 'tachyons-sass')
);
target.options.sassOptions.includePaths.push(
path.join(__dirname, 'app', 'styles')
);
target.import(path.join('node_modules', 'pikaday', 'pikaday.js'));
target.options.sassOptions.includePaths.push(
path.join('node_modules', 'pikaday', 'scss')
);
},
contentFor(type, config) {
let basicDropdownConfig = config['ember-basic-dropdown'];
if (!basicDropdownConfig || !basicDropdownConfig.destination) {
if (config.environment !== 'test' && type === 'body-footer' && !config._emberBasicDropdownContentForInvoked) {
config._emberBasicDropdownContentForInvoked = true;
return '<div id="ember-basic-dropdown-wormhole"></div><div id="safechain-component-library-wormhole"></div>';
}
}
}
};