question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gulp v4: what's the correct way of creating tasks

See original GitHub issue

Good day!

a) This doc doesn’t mention gulp.task. But it exists. What’s the correct way of creating tasks?

b) If I use exporting function method, is fn.description, etc. used?

c) So, every (every) function is considered (a private, maybe) task? But if function is just a helper (and even is not compatible with task system)?

d) If I use gulp.task, can I make a private task?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
phatedcommented, Oct 17, 2018

@kuraga have you reviewed our WIP API docs at https://github.com/gulpjs/gulp/pull/2226? I’m pretty sure your questions are answered.

1reaction
phatedcommented, Oct 17, 2018

@dmellstrom your advice is outdated in relation to gulp 4 and the new getting started guide. gulp.task is heavily unrecommended now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating Tasks | gulp.js
Gulp provides two powerful composition methods, series() and parallel() , allowing individual tasks to be composed into larger operations.
Read more >
Gulp 4 tutorial for beginners (Sass and JS workflow)
This tutorial on Gulp 4 will explain step by step, how to set up Gulp in your workflow to compile Sass and JavaScript...
Read more >
How to setup your Workflow using Gulp v4.0.0 | by Jatin Varlyani
The best way to automate the tedious tasks.​​ I caught myself doing some tasks by hand like minifying, beautifying, prefixing and linting. This...
Read more >
Gulp 4 Tutorial - DEV Community ‍ ‍
First create new directory for our project, if you already have one no need to create new. Open command prompt and change current...
Read more >
A quick guide for switching to gulp 4 | by Jhey Tompkins
For those in camp TL;DR — not a huge impact. Your tasks will break if they use the list parameter to define task...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found