aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-12-01 22:48:55 -0800
committerAdam Soltys <[email protected]>2015-12-01 23:43:24 -0800
commit62ca80f726b5af28b9f6de7f2b3ff32de732b566 (patch)
tree5e89e9871862fb0a93bfe151cc1914fda905cae9 /Gruntfile.coffee
parent41f8c6831bb91c0b0be1219b1566e59e48673465 (diff)
downloadcoinos-server-62ca80f726b5af28b9f6de7f2b3ff32de732b566.tar.gz
coinos-server-62ca80f726b5af28b9f6de7f2b3ff32de732b566.zip
Use browser sync
Diffstat (limited to 'Gruntfile.coffee')
-rw-r--r--Gruntfile.coffee16
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'])