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 - CoffeeScript Tutorial
From the course: Learning CoffeeScript
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is CoffeeScript?3m 31s
-
Using online tools to process CoffeeScript2m 40s
-
(Locked)
Comparing installation options4m 23s
-
(Locked)
Setting up a project with Gulp.js9m 50s
-
(Locked)
Creating simple JavaScript automation7m 33s
-
(Locked)
Adding a default task and live reloading10m 47s
-
(Locked)
Processing Sass files8m 56s
-
(Locked)
Adding CoffeeScript7m
-
-
-