Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Switch to using livereload in grunt-contrib-watch
  • Loading branch information
gashcrumb committed Jun 19, 2013
1 parent e21340b commit 235b6fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
17 changes: 5 additions & 12 deletions hawtio-web/GruntFile.js
Expand Up @@ -5,7 +5,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-type');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-reload');

/*
grunt.loadNpmTasks('grunt-typescript');
Expand Down Expand Up @@ -66,19 +65,13 @@ module.exports = function (grunt) {
dest: "<%= grunt.option('webapp_outdir') %>/app/app.js"
}
},
reload: {
port: 35729,
liveReload: {},
proxy: {
host: 'localhost',
port: port
}
},
watch: {
app: {
files: ["src/main/webapp/**", "target/schema/js/*.js"],
//tasks: ['type', 'concat', 'copy', 'reload']
tasks: ['type']
tasks: ['type', 'concat', 'copy:dist'],
options: {
livereload: true
}
}
}
});
Expand All @@ -88,6 +81,6 @@ module.exports = function (grunt) {
grunt.registerTask('default', ['type', 'concat', 'copy']);

// watch source for changes
grunt.registerTask('watchSrc', ['type', 'concat', 'copy', 'reload', 'watch']);
grunt.registerTask('watchSrc', ['type', 'concat', 'copy', 'watch']);

};
1 change: 0 additions & 1 deletion hawtio-web/package.json
Expand Up @@ -35,7 +35,6 @@
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-watch": "~0.4.4",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-reload": "~0.2.0",
"grunt-type": "~0.9.0"
},
"analyze": true,
Expand Down

0 comments on commit 235b6fb

Please sign in to comment.