diff options
| author | Adam Soltys <[email protected]> | 2015-12-01 22:48:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-12-01 23:43:24 -0800 |
| commit | 62ca80f726b5af28b9f6de7f2b3ff32de732b566 (patch) | |
| tree | 5e89e9871862fb0a93bfe151cc1914fda905cae9 /Gruntfile.coffee | |
| parent | 41f8c6831bb91c0b0be1219b1566e59e48673465 (diff) | |
| download | coinos-server-62ca80f726b5af28b9f6de7f2b3ff32de732b566.tar.gz coinos-server-62ca80f726b5af28b9f6de7f2b3ff32de732b566.zip | |
Use browser sync
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']) |
