Join Ray Villalobos for an in-depth discussion in this video Adding CoffeeScript, part of Up and Running with 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 same options as the standard CoffeeScript compiler.…
- What is CoffeeScript?
- Setting up a project with Gulp.js
- Adding CoffeeScript to your workflow
- Dealing with array ranges
- Working with conditional statements
- Using loops
- Working with splats