Skip to content

Instantly share code, notes, and snippets.

@tjwudi
Created October 12, 2014 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjwudi/214db0644ed5e8daa7e0 to your computer and use it in GitHub Desktop.
Save tjwudi/214db0644ed5e8daa7e0 to your computer and use it in GitHub Desktop.
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