0f25607b by jrivera Committed by David LaPalomento

More fixes for tests and added a watch for automatic building

1 parent 4e23608e
'use strict';
var basename = require('path').basename;
var
basename = require('path').basename,
mediaSourcesPath = 'node_modules/videojs-contrib-media-sources/dist/',
mediaSourcesDebug = mediaSourcesPath + 'videojs-media-sources.js';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json');
......@@ -24,7 +27,8 @@ module.exports = function(grunt) {
},
dist: {
nonull: true,
src: ['node_modules/videojs-contrib-media-sources/dist/videojs-media-sources.js',
src: [
mediaSourcesDebug,
'src/videojs-hls.js',
'src/xhr.js',
'src/stream.js',
......@@ -93,6 +97,10 @@ module.exports = function(grunt) {
}
},
watch: {
build: {
files: '<%= concat.dist.src %>',
tasks: ['clean', 'concat', 'uglify']
},
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
......
This diff could not be displayed because it is too large.