Skip to content

Commit e769057

Browse files
committed
Adding watch
1 parent e869991 commit e769057

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Gruntfile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ module.exports = function(grunt)
2121
module: true
2222
}
2323
}
24+
},
25+
watch: {
26+
scripts: {
27+
files: ['jquery-fileupload.js'],
28+
tasks: ['build']
29+
}
2430
}
2531
});
2632

2733
grunt.loadNpmTasks('grunt-contrib-uglify');
2834
grunt.loadNpmTasks('grunt-contrib-jshint');
35+
grunt.loadNpmTasks('grunt-contrib-watch');
2936

3037
grunt.registerTask('default', 'build');
3138
grunt.registerTask('build', ['jshint', 'uglify']);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"devDependencies": {
55
"grunt": "~0.4.1",
66
"grunt-contrib-jshint": "~0.7.2",
7-
"grunt-contrib-uglify": "~0.2.7"
7+
"grunt-contrib-uglify": "~0.2.7",
8+
"grunt-contrib-watch": "~0.2.0"
89
}
910
}

0 commit comments

Comments
 (0)