forked from IvyApp/ivy-videojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
43 lines (33 loc) · 1.42 KB
/
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
39
40
41
42
43
/* jshint node: true */
'use strict';
var path = require('path');
module.exports = {
name: 'ivy-videojs',
blueprintsPath: function() {
return path.join(__dirname, 'blueprints');
},
included: function(app) {
var options = app.options.videojs || {};
app.import({
development: path.join(app.bowerDirectory, 'video.js/dist/video-js.css'),
production: path.join(app.bowerDirectory, 'video.js/dist/video-js.min.css')
});
app.import(path.join(app.bowerDirectory, 'video.js/dist/font/VideoJS.eot'), { destDir: 'assets/font' });
app.import(path.join(app.bowerDirectory, 'video.js/dist/font/VideoJS.svg'), { destDir: 'assets/font' });
app.import(path.join(app.bowerDirectory, 'video.js/dist/font/VideoJS.ttf'), { destDir: 'assets/font' });
app.import(path.join(app.bowerDirectory, 'video.js/dist/font/VideoJS.woff'), { destDir: 'assets/font' });
app.import('vendor/ivy-videojs/shims.js', {
exports: {
videojs: ['default']
}
});
app.import({
development: path.join(app.bowerDirectory, 'video.js/dist/video.js'),
production: path.join(app.bowerDirectory, 'video.js/dist/video.min.js')
});
(options.languages || []).forEach(function(language) {
app.import(path.join(app.bowerDirectory, 'video.js/dist/lang/' + language + '.js'));
});
app.import(path.join(app.bowerDirectory, 'video.js/dist/video-js.swf'), { destDir: 'assets' });
}
};