Added grunt watch and grunt server

This commit is contained in:
AlexKvazos
2015-04-30 13:41:54 -05:00
parent 968230622e
commit 7794cbf56d
3 changed files with 24 additions and 1 deletions
+19
View File
@@ -34,14 +34,33 @@ module.exports = function(grunt) {
options: {
mangle: false
}
},
watch: {
client: {
files: ['app/client/**/*.js'],
tasks: ['debug']
}
},
nodemon: {
dev: {
script: ['app/server'],
options: {
watch: ['app/server']
}
}
}
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('build', ['browserify:pro', 'uglify']);
grunt.registerTask('debug', ['browserify:dev']);
grunt.registerTask('server', ['nodemon']);
}