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.

Adding CoffeeScript

Adding CoffeeScript - CoffeeScript Tutorial

From the course: Learning CoffeeScript

Start my 1-month free trial

Adding CoffeeScript

It's time to get a CoffeeScript into our workflow. And by now you should be pretty used to the sequence. So, let's go ahead and do it. The first thing we'll need to do, of course, is add another variable here. We'll call this one coffee. And we'll require the plugin that we'll need for CoffeeScript, which is called gulp-coffee. And make sure you add a comma here at the end. We're going to set this up pretty much how they suggest in the documentation. If you look at the usage, you can see that it's pretty much what we've done before, but there's an additional little segment here called on. It's an event handler for when an error happens. And you can read that the error handling has to happen or gulp is going to crash whenever CoffeeScript sends an error. So we'll need to add that. That's a little bit different. And then the options, you can see that there's an option here called bare true. But if you scroll down here, you'll see that there are no options. It says that they support the…

Contents