Last active
January 19, 2016 14:51
-
-
Save jongravois/57ee2158a179b36d3cfd to your computer and use it in GitHub Desktop.
replace default Laravel gulpfile.js
This file contains hidden or 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 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