From ef315943df79200b264cc95faf3b1d03685c41db Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Thu, 14 Nov 2013 09:22:06 -0500 Subject: [PATCH] Add grunt-contrib-connect --- Gruntfile.js | 10 ++++++++++ package.json | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index ec9e4e5fad..8ce99a3a1c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -19,12 +19,22 @@ module.exports = function(grunt) { src: 'jquery.mousewheel.js', dest: 'build/jquery.mousewheel.min.js' } + }, + connect: { + server: { + options: { + hostname: '*', + directory: '.', + keepalive: true + } + } } }); // Load the plugin that provides the 'uglify' task. grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-connect'); // Default task(s). grunt.registerTask('default', ['jshint', 'uglify']); diff --git a/package.json b/package.json index be77e727b1..7d819eee59 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-jshint": "~0.6.4", - "grunt-contrib-uglify": "~0.2.4" + "grunt-contrib-uglify": "~0.2.4", + "grunt-contrib-connect": "~0.5.0" }, "readmeFilename": "README.markdown", "directories": {