File: /home/cursos.ril.es/node_modules/laravel-elixir/tasks/exec.js
var gulp = require('gulp');
var Elixir = require('laravel-elixir');
/*
|----------------------------------------------------------------
| Shell Commands
|----------------------------------------------------------------
|
| Need to execute a shell script, as part of your compile
| process? No problem. Elixir can help with that. Just
| call `mix.exec('command')`, and, bam, you're set!
|
*/
Elixir.extend('exec', function(command, watcher) {
var task = new Elixir.Task('exec', function() {
Elixir.Log
.heading('Triggering Command...')
.message(command);
return (
gulp
.src('')
.pipe(Elixir.Plugins.shell(command))
);
});
if (watcher) {
task.watch(watcher);
}
});