-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
38 lines (31 loc) · 920 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
35
36
37
38
/* eslint-env node */
'use strict';
var MergeTrees = require('broccoli-merge-trees');
var Funnel = require('broccoli-funnel');
var path = require('path');
function distDirFor(packageName) {
try {
var resolved = require.resolve(packageName + '/package.json');
return path.join(path.dirname(resolved), 'dist');
} catch (e) {
return null;
}
}
module.exports = {
name: 'ember-mobiledoc-apple-news-renderer',
treeForVendor: function() {
var files = []
var dir = distDirFor('@bustle/mobiledoc-apple-news-renderer');
files.push(new Funnel(dir, {
files: [
'amd/mobiledoc-apple-news-renderer.js',
'amd/mobiledoc-apple-news-renderer.map'
],
destDir: 'mobiledoc-apple-news-renderer'
}))
return new MergeTrees(files)
},
included: function(app) {
app.import('vendor/mobiledoc-apple-news-renderer/amd/mobiledoc-apple-news-renderer.js')
}
};