Book Image

Getting Started with Grunt: The JavaScript Task Runner

By : Jaime Pillora, Bocoup LLC
Book Image

Getting Started with Grunt: The JavaScript Task Runner

By: Jaime Pillora, Bocoup LLC

Overview of this book

Table of Contents (12 chapters)

Chapter 4. Grunt in Action

It is now time to put our newfound knowledge into action. Grunt can be used in a wide variety of ways; however, the most common use case is a static website. Static websites are growing in popularity, as the web development industry requires ever-increasing levels of scalability. Although using a Content Management System (CMS) is a common method of managing a website, it is not the most efficient method of serving a website. This is because the majority of CMSs, such as WordPress, require PHP and an accompanying database. Static files on the other hand, can be hosted very cheaply on a cloud service such as Amazon's S3. Even if our website requires a server component to provide authentication, we may, for example, reduce the load on the server by moving as much logic as possible into the frontend. This provides us with a greater ability to scale, while reducing costs at the same time. We can take this idea of scalability even further with the concept of single...