Skip to content

Instantly share code, notes, and snippets.

@KrisTemmerman
Created February 26, 2016 10:18
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 KrisTemmerman/235cd535e3dff8a1663f to your computer and use it in GitHub Desktop.
Save KrisTemmerman/235cd535e3dff8a1663f to your computer and use it in GitHub Desktop.
var elixir = require('laravel-elixir');
var gulp = require('gulp');
var shell = require('gulp-shell');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
/* Adds the sync task to the elixir mix */
mix.task('sync','public/**/*.*')
});
gulp.task('sync',function(){
console.log('Gulp is syncing your public_html folder')
gulp.src(['public/**/*.*','!public/index.php'])
.pipe(gulp.dest('../public_html/'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment