diff options
Diffstat (limited to 'Gruntfile.coffee')
| -rw-r--r-- | Gruntfile.coffee | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 66f35542..cbdd8b48 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -24,17 +24,27 @@ module.exports = (grunt) -> src: "*.less" dest: 'public/css' ext: ".css" + browserSync: + dev: + bsFiles: + src: ['views/**/*.html', 'public/js/*.js', 'public/css/*.css'] + options: + open: 'local' + proxy: 'http://localhost:3000/' + watchTask: true watch: less: files: ['public/css/*.less'] - tasks: ['less'] + tasks: ['newer:less'] coffee: files: ['**/*.coffee'] - tasks: ['coffee', 'coffeeify'] + tasks: ['newer:coffee', 'newer:coffeeify'] ) + grunt.loadNpmTasks('grunt-browser-sync') grunt.loadNpmTasks('grunt-coffeeify') grunt.loadNpmTasks('grunt-contrib-less') grunt.loadNpmTasks('grunt-contrib-coffee') grunt.loadNpmTasks('grunt-contrib-watch') - grunt.registerTask('default', 'watch') + grunt.loadNpmTasks('grunt-newer') + grunt.registerTask('default', ['browserSync', 'watch']) |
