Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = ->
  2.   BASE_PATH = 'app/'
  3.  
  4.   @initConfig
  5.     express:
  6.       all:
  7.         options:
  8.           port: 9090
  9.           hostname: '0.0.0.0'
  10.           open: true
  11.           livereload: true
  12.           bases: ['app']
  13.  
  14.     watch:
  15.       pages:
  16.         files: [BASE_PATH + '*.html']
  17.         options:
  18.           spawn: true
  19.           interrupt: true
  20.           livereload: true
  21.  
  22.     scripts:
  23.       files: [BASE_PATH + 'scripts/**/*.js']
  24.       options:
  25.         spawn: true
  26.         interrupt: true
  27.         livereload: true
  28.  
  29.     styles:
  30.       files: [BASE_PATH + 'styles/**/*.scss']
  31.       options:
  32.         spawn: true
  33.         interrupt: true
  34.         livereload: true
  35.  
  36.  
  37.  
  38.   @loadNpmTasks 'grunt-express'
  39.   @loadNpmTasks 'grunt-contrib-watch'
  40.  
  41.   @registerTask 'server', ['express', 'watch']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement