Join Ray Villalobos for an in-depth discussion in this video Adding a default task and live reloading, part of Up and Running with CoffeeScript.
…Running a single task is just fine but…eventually you're going to want things to happen more automatically.…So let's go ahead and create a more streamline way…to process our tasks and also set up live reloading.…Now to do all this we're going to need to add some additional variables up here.…So right at the end of the…variable declaration I'm going to add some additional things.…So, I'll need to add a new live reload variable here, and ask it to require.…So we'll need to load the live reload module.…
And the live reload module also requires that you…load in the tiny dash lr module as well.…So I'll do require tiny-lr.…And then we'll also need to create a server variable, and that is just going to…be set to the lr method from this other library.…
- 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