mirror of
https://github.com/videojs/video.js.git
synced 2025-03-17 21:18:27 +02:00
Created a combined sources file so people can pull into external projects. fixes #287
This commit is contained in:
parent
07d03e1a27
commit
fc97d6ece4
@ -80,6 +80,14 @@ module.exports = function(grunt) {
|
||||
if (results) {
|
||||
grunt.file.write('dist/sourcelist.txt', results.join(','));
|
||||
grunt.file.write('dist/sourcelist.js', 'var sourcelist = ["' + results.join('","') + '"]');
|
||||
|
||||
// Create a combined sources file
|
||||
// https://github.com/zencoder/video-js/issues/287
|
||||
var combined = '';
|
||||
results.forEach(function(result){
|
||||
combined += grunt.file.read(result);
|
||||
});
|
||||
grunt.file.write('dist/source.video.js', combined);
|
||||
}
|
||||
|
||||
done();
|
||||
|
Loading…
x
Reference in New Issue
Block a user