-
Notifications
You must be signed in to change notification settings - Fork 51
/
index.js
44 lines (38 loc) · 1.7 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
44
/* eslint-env node */
'use strict';
var path = require('path');
var mergeTrees = require('broccoli-merge-trees');
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'ember-material-lite',
included(app) {
this._super.included.apply(this, arguments);
// app.vendorFiles['componentHandlerShim.js'] = 'vendor/componentHandlerShim.js';
app.import('vendor/componentHandlerShim.js');
app.import('vendor/material-design-lite/src/button/button.js');
app.import('vendor/material-design-lite/src/checkbox/checkbox.js');
app.import('vendor/material-design-lite/src/data-table/data-table.js');
app.import('vendor/material-design-lite/src/icon-toggle/icon-toggle.js');
app.import('vendor/material-design-lite/src/layout/layout.js');
app.import('vendor/material-design-lite/src/menu/menu.js');
app.import('vendor/material-design-lite/src/progress/progress.js');
app.import('vendor/material-design-lite/src/radio/radio.js');
app.import('vendor/material-design-lite/src/ripple/ripple.js');
app.import('vendor/material-design-lite/src/slider/slider.js');
app.import('vendor/material-design-lite/src/spinner/spinner.js');
app.import('vendor/material-design-lite/src/switch/switch.js');
app.import('vendor/material-design-lite/src/tabs/tabs.js');
app.import('vendor/material-design-lite/src/textfield/textfield.js');
app.import('vendor/material-design-lite/src/tooltip/tooltip.js');
},
treeForVendor(tree) {
var materialDesignLite = new Funnel(path.dirname(require.resolve('material-design-lite/material.js')), {
srcDir: 'src',
destDir: 'material-design-lite/src'
});
return mergeTrees([
tree,
materialDesignLite
]);
}
};