I want to use Laravel's Elixir along with Semantic UI in my new project.
In Semantic UI docs, they suggest how to include their gulp tasks to your current project's gulpfile. In Laravel, they suggest (briefly) how to extend Elixir. But how can I include another gulp task to the watch
command?
Currently I'm running gulp watch watch-ui
, but I wanted to include the watch-ui
task inside watch
. Is it possible?
This is my current gulpfile.js
:
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var semantic = {
watch: require('./resources/assets/semantic/tasks/watch'),
build: require('./resources/assets/semantic/tasks/build')
};
gulp.task('watch-ui', semantic.watch);
gulp.task('build-ui', semantic.build);
elixir(function(mix) {
mix.task('build-ui');
});