From the course: Gulp.js: Web Project Workflows

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Creating your first task

Creating your first task - Gulp.js Tutorial

From the course: Gulp.js: Web Project Workflows

Start my 1-month free trial

Creating your first task

- [Instructor] One of the advantages of using gulp.js is that it lets you use regular JavaScript to manage your tasks. So what you do is you create a file called gulpfile.js in the same directory as your project, you can even capitalize the G, if you want to. And when you type in the gulp command in the terminal, it look for this file and execute whatever is in it. Now you can use any number of gulp specific modules or any traditional npm module. There's a website where you can find all of the node modules, which is at this URL. Tasks can also be split up into separate files. If you want to, you can even create a folder called gulpfile.js instead of a file. And then you can add an index.js file in there that's going to get loaded up as the default document. You can then use that file to import other files. Tasks can come in a variety of formats, including streams, promises, and others. Now they say that the most popular…

Contents