R
R
RodgerFox2016-07-26 16:43:52
gulp.js
RodgerFox, 2016-07-26 16:43:52

How to make tasks run sequentially on Elixir in Laravel?

There are three tasks, two of them can be executed asynchronously, but the third must be executed after two. How to do it using Elixir (a gimmick wrapper for Gulp that communicates with Larvel)
Using the construct:

elixir.extend('task1.2.3', function() {
  new Task('task1.2.3', function() {
    // ....
  })
  .watch('./');
});

You have to use this construct to call later:
elixir(function(mix) {
  mix.task1();
       //... и след таски 
});

Please tell me how to solve this problem?
I tried to create separate gallp tasks and attach them to the structure:
gulp.task('task1'....)
gulp.task('task2'....)
elixir.extend('task1.2.3', ['task1', 'task2'], function() {
  new Task(...)
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2016-07-26
@dmitry_pavlov

The bug seems to be there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question