Created
July 15, 2015 12:32
-
-
Save MarkArts/8ce2705718d3e2d3773e to your computer and use it in GitHub Desktop.
A Gulpfile that servers a krafwagen drupal setup with gulp-connect-php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserSync = require('browser-sync'); | |
var shell = require('gulp-shell'); | |
var php = require('gulp-connect-php'); | |
gulp.task('serve', function(){ | |
php.server({ base: 'build', port: 4242, keepalive: true}); | |
browserSync({ | |
proxy: '127.0.0.1:4242', | |
open: true, | |
notify: false | |
}); | |
gulp.watch("./build/profiles/**/*", ['cc', browserSync.reload]); | |
}); | |
gulp.task('cc', shell.task( | |
"drush cc all", | |
{ | |
cwd: './build' | |
} | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment