Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part II. CoffeeScript in Practice > 7. Cake and Cakefiles

7. Cake and Cakefiles

CoffeeScript offers a simple build tool, called Cake, that is very similar in nature to Ruby’s Rake1 tool. Cake enables you to define simple tasks to help with your CoffeeScript projects. Perhaps you need a task to run your tests or a task to build your files. Cake lets you define those tasks easily in a file called a Cakefile.

In this chapter you’ll learn how to define and execute Cake tasks, and of course, we’ll be doing it all using CoffeeScript.


Tip

“Wait a minute, how do we install Cake?” You don’t have to! When you installed CoffeeScript, the installer also installed Cake and its command-line tool, aptly named cake. You don’t have to do anything extra to get access to this tool.



  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint