Book Image

Backbone.js Essentials

By : Jeremy Walker
Book Image

Backbone.js Essentials

By: Jeremy Walker

Overview of this book

<p>This book offers insight into creating and maintaining dynamic Backbone.js web applications. It delves into the the fundamentals of Backbone.js and helps you achieve mastery of the Backbone library.</p> <p>Starting with Models and Collections, you'll learn how to simplify client-side data management and easily transmit data to and from your server. Next, you'll learn to use Views and Routers to facilitate DOM manipulation and URL control so that your visitors can navigate your entire site without ever leaving the first HTML page. Finally, you'll learn how to combine those building blocks with other tools to achieve high-performance, testable, and maintainable web applications.</p>
Table of Contents (20 chapters)
Backbone.js Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Automating tasks with Grunt


In many software projects, there are a number of tasks that are typically automated. For instance, just as a traditional C++ or Java project would need to compile the source code into byte code, a JavaScript project might need to use RequireJS or CoffeeScript to compile its source. The project might also need to concatenate files, run linting programs to validate the source, or assemble other web components such as sprite image files or SCSS/Less-generated CSS files.

Most of these tasks aren't language-specific: you don't need to actually use JavaScript code in order to start RequireJS Optimizer; you just need a command line. Because of this, it's possible to use a tool designed for another language (such as Ant or Maven for Java, or Fabric for Python) to automate these tasks, and if your server-side team is using such a language, it might be helpful to have everyone using the same tool.

However, if you don't have a server-side team (or if that team uses Node.js...