Private Tasks in Gulp
Let's say we have two tasks:
javascriptfunction task1(cb) {
console.log('task1');
cb();
}
function task2(cb) {
console.log('task2');
cb();
}
Let's also say we have another task that calls other tasks inside itself:
javascriptfunction taskD(cb) {
task1(cb);
task2(cb);
cb();
}
It is this task that we will export:
javascriptexports.default = taskD;
It turns out that we have one task for export - public, and two auxiliary tasks - private, which are used only inside the functions of public tasks.
Задание 1
Create three private tasks. Call their functions inside one public task.
Задание 2
Create two public and four private tasks. Call the first pair of private tasks in one public function, and the second pair - inside another.