-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathember-addon-main.js
More file actions
32 lines (24 loc) · 827 Bytes
/
Copy pathember-addon-main.js
File metadata and controls
32 lines (24 loc) · 827 Bytes
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
'use strict';
var path = require('path');
function UnwatchedTree (dir) { this.dir = dir } // from broccoli-bower
UnwatchedTree.prototype.read = function (readTree) { return this.dir }
UnwatchedTree.prototype.cleanup = function () { }
module.exports = {
name: 'ember-magic-resolver',
treeFor: function(name) {
if (name === 'vendor') {
return new UnwatchedTree(path.join('node_modules', 'ember-magic-resolver', 'dist'));
}
},
included: function(app) {
this._super.included(app);
app.import('vendor/magic-resolver.js', {
exports: {'magic-resolver': ['default']},
});
app._podTemplatePatterns = function() {
return this.registry.extensionsForType('template').map(function(extension) {
return new RegExp('template\..*?' + extension + '$');
});
};
}
};