forked from poetic/ember-animated-outlet-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathember-addon.js
40 lines (31 loc) · 978 Bytes
/
ember-addon.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
'use strict';
var pickFiles = require('broccoli-static-compiler');
var path = require('path');
var fs = require('fs');
function AnimatedOutletMobile(project) {
this.project = project;
this.name = "Ember CLI Ember Animated Outlet Mobile";
}
function unwatchedTree(dir) {
return {
read: function() { return dir; },
cleanup: function() { }
};
}
AnimatedOutletMobile.prototype.treeFor = function(name) {
if (name !== 'vendor') {
return;
}
var libPath = unwatchedTree(path.join(__dirname, 'dist'));
var lib = pickFiles(libPath, {
srcDir: '/',
files: ['*.js', '*.css'],
destDir: '/ember-animated-outlet-mobile/dist'
});
return lib;
};
AnimatedOutletMobile.prototype.included = function(app) {
app.import('vendor/ember-animated-outlet-mobile/dist/ember-animated-outlet-mobile.css');
app.import('vendor/ember-animated-outlet-mobile/dist/ember-animated-outlet-mobile.js');
};
module.exports = AnimatedOutletMobile;