Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec:{
prepare:{
command:"cordova prepare",
stdout:true,
stderror:true
}
},
watch:{
files:['www/**/*.*'],
tasks:['exec:prepare']
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('default', ['watch']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment