0f25607b by jrivera Committed by David LaPalomento

More fixes for tests and added a watch for automatic building

1 parent 4e23608e
1 'use strict'; 1 'use strict';
2 2
3 var basename = require('path').basename; 3 var
4 basename = require('path').basename,
5 mediaSourcesPath = 'node_modules/videojs-contrib-media-sources/dist/',
6 mediaSourcesDebug = mediaSourcesPath + 'videojs-media-sources.js';
4 7
5 module.exports = function(grunt) { 8 module.exports = function(grunt) {
6 var pkg = grunt.file.readJSON('package.json'); 9 var pkg = grunt.file.readJSON('package.json');
...@@ -24,7 +27,8 @@ module.exports = function(grunt) { ...@@ -24,7 +27,8 @@ module.exports = function(grunt) {
24 }, 27 },
25 dist: { 28 dist: {
26 nonull: true, 29 nonull: true,
27 src: ['node_modules/videojs-contrib-media-sources/dist/videojs-media-sources.js', 30 src: [
31 mediaSourcesDebug,
28 'src/videojs-hls.js', 32 'src/videojs-hls.js',
29 'src/xhr.js', 33 'src/xhr.js',
30 'src/stream.js', 34 'src/stream.js',
...@@ -93,6 +97,10 @@ module.exports = function(grunt) { ...@@ -93,6 +97,10 @@ module.exports = function(grunt) {
93 } 97 }
94 }, 98 },
95 watch: { 99 watch: {
100 build: {
101 files: '<%= concat.dist.src %>',
102 tasks: ['clean', 'concat', 'uglify']
103 },
96 gruntfile: { 104 gruntfile: {
97 files: '<%= jshint.gruntfile.src %>', 105 files: '<%= jshint.gruntfile.src %>',
98 tasks: ['jshint:gruntfile'] 106 tasks: ['jshint:gruntfile']
......
This diff could not be displayed because it is too large.