Skip to content

Instantly share code, notes, and snippets.

@josephj
Created August 24, 2014 22:53
Show Gist options
  • Save josephj/76ce4b77f188e9d70da1 to your computer and use it in GitHub Desktop.
Save josephj/76ce4b77f188e9d70da1 to your computer and use it in GitHub Desktop.
gulp = require 'gulp'
livereload = require 'gulp-livereload'
watch = require 'gulp-watch'
coffee = require 'gulp-coffee'
exec = require('child_process').exec
gulp.task 'watch', ->
watch glob: "app/public/.phrozn/**/*.twig", (files) ->
console.log "Executing 'phr up'"
exec 'cd app/public;phr up'
gulp.src ["app/public/**/*.html"]
.pipe(watch())
.pipe(livereload(35719))
require('coffee-script/register');
require('./gulpfile.coffee');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment