Skip to content

Instantly share code, notes, and snippets.

@MarkArts
Created July 15, 2015 12:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkArts/8ce2705718d3e2d3773e to your computer and use it in GitHub Desktop.
Save MarkArts/8ce2705718d3e2d3773e to your computer and use it in GitHub Desktop.
A Gulpfile that servers a krafwagen drupal setup with gulp-connect-php
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