From the course: Learning CoffeeScript

Unlock the full course today

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

Creating simple JavaScript automation

Creating simple JavaScript automation - CoffeeScript Tutorial

From the course: Learning CoffeeScript

Start my 1-month free trial

Creating simple JavaScript automation

Now that we've set up our project and we've installed gulp.js plus its dependencies, it's time to set up our first workflow. We're going to keep things simple. We'll start by combining and minifying our JavaScript documents. I'm going to come back into my folder, and I'm going to create a new file here, it's going to be called gulpfile.js. This is where we're going to put our task in Gulp. Now I've got a couple of scripts in the scripts folder, but right now they're empty, so I'm going to need to create some sample scripts here. I'll just create a very basic function and I'll save this one. And this other one. Excellent. And then I'll go into my Gulp file. And I'll type in some command, so that I can start processing those files. So first I need to create some variables. And these variables are going to hold the plugins that we're bringing in from our node installation. So first I'm going to create a variable called gulp. And it's going to say require gulp or the gulp plug in, then…

Contents