Skip to content

Instantly share code, notes, and snippets.

@jongravois
Last active January 19, 2016 14:51
Show Gist options
  • Save jongravois/57ee2158a179b36d3cfd to your computer and use it in GitHub Desktop.
Save jongravois/57ee2158a179b36d3cfd to your computer and use it in GitHub Desktop.
replace default Laravel gulpfile.js
var elixir = require('laravel-elixir');
var gulp = require('gulp');
var shell = require('gulp-shell');
var Task = elixir.Task;
var paths = {
"assets": "./resources/assets/",
"vendor": "./resources/assets/vendor/",
"public": "./public/"
}
elixir.extend('speak', function(message){
new Task('speak', function(){
return gulp.src('').pipe(shell('say ' + message));
});
});
gulp.task('hello', function(){
console.log('First Gulp Task');
});
elixir(function(mix) {
mix
.copy(paths.vendor + 'font-awesome/fonts/**', paths.public + 'fonts')
.copy(paths.vendor + 'bootstrap/fonts/**', paths.public + 'fonts/bootstrap/')
.sass('app.scss')
.scripts([
paths.vendor + 'jquery/dist/jquery.min.js',
paths.vendor + 'bootstrap/dist/js/bootstrap.js'
], 'public/js/app.js')
.phpUnit()
.speak('Compilation complete!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment