1 | /* jshint node: true */
|
2 | ;
|
3 |
|
4 | var path = require('path');
|
5 | var mergeTrees = require('broccoli-merge-trees');
|
6 |
|
7 | module.exports = {
|
8 | name: 'lodash',
|
9 |
|
10 | treeForAddon: function(tree) {
|
11 | var lodashPath = path.dirname(require.resolve('lodash-es/lodash.js'));
|
12 | var lodashTree = this.treeGenerator(lodashPath);
|
13 |
|
14 | var trees = mergeTrees([lodashTree, tree], {
|
15 | overwrite: true
|
16 | });
|
17 |
|
18 | return this._super.treeForAddon.call(this, trees);
|
19 | }
|
20 | };
|