Gulp – walk-through – Part 1

For full tutorial please see:

gulp.task(name [, deps] [, fn])

Define a task using Orchestrator.

gulp.task(‘somename’, function() {

 // Do stuff


Async task support

Tasks can be made asynchronous if its fn does one of the following:

By default, tasks run with maximum concurrency — e.g. it launches all the tasks at once and waits for nothing. If you want to create a series where tasks run in a particular order, you need to do two things:

give it a hint to tell it when the task is done, and give it a hint that a task depends on completion of another.

Names of task(s) to run when a file changes, added with gulp.task()

Leave a Reply

Your email address will not be published. Required fields are marked *