-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
34 lines (25 loc) · 1007 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
33
34
/* eslint-env node */
'use strict'
const {setSvgConfiguration} = require('ember-frost-core/utils/frost-icon-svg')
module.exports = {
name: 'ember-frost-sort',
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-sort')
this._super.included.apply(this, arguments)
},
/* eslint-disable complexity */
init: function (app) {
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 no-unused-expressions */
this._super.init && this._super.init.apply(this, arguments)
/* eslint-enable no-unused-expressions */
}
/* eslint-enable complexity */
}