forked from ritesh83/ember-cli-jstree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
32 lines (24 loc) · 843 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
/* jshint node: true */
'use strict';
var path = require('path');
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'ember-cli-jstree',
included: function (app) {
this._super.included(app);
if (process.env.EMBER_CLI_FASTBOOT) {
return;
}
app.import(app.bowerDirectory + '/jstree/dist/jstree.js');
app.import(app.bowerDirectory + '/jstree/dist/themes/default/style.css');
},
treeForPublic: function() {
var defaultThemePath = path.join(this.app.bowerDirectory, 'jstree', 'dist', 'themes', 'default');
var defaultThemeAssets = new Funnel(this.treeGenerator(defaultThemePath), {
srcDir: '/',
include: ['**/*.png', '**/*.gif'],
destDir: '/assets'
});
return defaultThemeAssets;
}
};