-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.js
32 lines (24 loc) · 969 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
32
/* eslint-env node */
'use strict'
const {setSvgConfiguration} = require('ember-frost-core/utils/frost-icon-svg')
module.exports = {
name: 'ember-frost-navigation',
included: function () {
this.app = this._findHost.call(this) // eslint-disable-line no-useless-call
// Set ember-cli-svgstore options so that consuming applications don't have to
setSvgConfiguration.call(this, 'frost-nav')
this._super.included.apply(this, arguments)
},
/* eslint-disable complexity */
init: function () {
this.options = this.options || {}
this.options.babel = this.options.babel || {}
this.options.babel.optional = this.options.babel.optional || []
if (this.options.babel.optional.indexOf('es7.decorators') === -1) {
this.options.babel.optional.push('es7.decorators')
}
// eslint-disable-next-line no-unused-expressions
this._super.init && this._super.init.apply(this, arguments)
}
/* eslint-enable complexity */
}