39f7051b by Tom Johnson

- Update Node.js requirment version in package.json.

- Grunt dev environment setup with connect, watch.
1 parent 7b8f263f
......@@ -71,10 +71,18 @@ module.exports = function(grunt) {
}
},
connect: {
dev: {
port: 8000,
base: '.'
dev: {
options: {
port: 9999,
keepalive: true
}
}
},
open : {
dev : {
path: 'http://127.0.0.1:<%= connect.dev.options.port %>/example.html',
app: 'Google Chrome'
}
},
watch: {
gruntfile: {
......@@ -89,6 +97,14 @@ module.exports = function(grunt) {
files: '<%= jshint.test.src %>',
tasks: ['jshint:test', 'qunit']
}
},
concurrent: {
dev: {
tasks: ['connect', 'open', 'watch'],
options: {
logConcurrentOutput: true
}
}
}
});
......@@ -100,6 +116,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-concurrent');
grunt.registerTask('manifests-to-js', 'Wrap the test fixtures and output' +
' so they can be loaded in a browser',
......@@ -145,6 +163,9 @@ module.exports = function(grunt) {
grunt.file.write('tmp/expected.js', jsExpected);
});
// Launch a Development Environment
grunt.registerTask('dev', 'Launching Dev Environment', 'concurrent:dev');
// Default task.
grunt.registerTask('default',
['clean',
......
......@@ -2,7 +2,7 @@
"name": "videojs-contrib-hls",
"version": "0.3.0",
"engines": {
"node": ">= 0.8.0"
"node": ">= 0.10.12"
},
"repository": {
"type": "git",
......@@ -20,6 +20,9 @@
"grunt-contrib-watch": "~0.4.0",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-connect": "~0.6.0",
"grunt-concurrent": "0.4.3",
"grunt-open": "0.2.3",
"grunt-shell": "0.6.1",
"grunt": "~0.4.1"
},
"dependencies": {
......