Add grunt-contrib-connect

This commit is contained in:
Brandon Aaron
2013-11-14 09:22:06 -05:00
parent 599dcf3096
commit ef315943df
2 changed files with 12 additions and 1 deletions

View File

@ -19,12 +19,22 @@ module.exports = function(grunt) {
src: 'jquery.mousewheel.js', src: 'jquery.mousewheel.js',
dest: 'build/jquery.mousewheel.min.js' dest: 'build/jquery.mousewheel.min.js'
} }
},
connect: {
server: {
options: {
hostname: '*',
directory: '.',
keepalive: true
}
}
} }
}); });
// Load the plugin that provides the 'uglify' task. // Load the plugin that provides the 'uglify' task.
grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-connect');
// Default task(s). // Default task(s).
grunt.registerTask('default', ['jshint', 'uglify']); grunt.registerTask('default', ['jshint', 'uglify']);

View File

@ -29,7 +29,8 @@
"devDependencies": { "devDependencies": {
"grunt": "~0.4.1", "grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4", "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", "readmeFilename": "README.markdown",
"directories": { "directories": {