Skip to content

Commit ef31594

Browse files
committed
Add grunt-contrib-connect
1 parent 599dcf3 commit ef31594

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,22 @@ module.exports = function(grunt) {
1919
src: 'jquery.mousewheel.js',
2020
dest: 'build/jquery.mousewheel.min.js'
2121
}
22+
},
23+
connect: {
24+
server: {
25+
options: {
26+
hostname: '*',
27+
directory: '.',
28+
keepalive: true
29+
}
30+
}
2231
}
2332
});
2433

2534
// Load the plugin that provides the 'uglify' task.
2635
grunt.loadNpmTasks('grunt-contrib-jshint');
2736
grunt.loadNpmTasks('grunt-contrib-uglify');
37+
grunt.loadNpmTasks('grunt-contrib-connect');
2838

2939
// Default task(s).
3040
grunt.registerTask('default', ['jshint', 'uglify']);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"devDependencies": {
3030
"grunt": "~0.4.1",
3131
"grunt-contrib-jshint": "~0.6.4",
32-
"grunt-contrib-uglify": "~0.2.4"
32+
"grunt-contrib-uglify": "~0.2.4",
33+
"grunt-contrib-connect": "~0.5.0"
3334
},
3435
"readmeFilename": "README.markdown",
3536
"directories": {

0 commit comments

Comments
 (0)