Book Image

Mastering Grunt

By : Daniel Li
Book Image

Mastering Grunt

By: Daniel Li

Overview of this book

<p>Grunt.js continues to excel as the build automation tool of choice. Along with its support for many third-party technologies, Grunt is packaged with a clean API for defining tasks. This powerful tool can streamline your workflow by automating the preparation tasks for production, such as compression, compilation, obfuscation, testing, and even pushing your web application live. This book will teach you how to master build automation and testing with Grunt. You will have the opportunity to utilize the latest and in-demand web tools, such as Git, Jade, CoffeeScript, Sass, and the Mocha testing engine, across several exciting projects by combining Grunt with them. You will also learn to create a project – a simple Bulletin Board System (BBS), which will explain the use of Grunt alongside the Mocha testing library to automate testing throughout the build process.</p> <p>Mastering Grunt will demonstrate how to leverage Grunt with other technologies to become an expert in build automation, teaching you the best practices for modern web development along the way.</p>
Table of Contents (12 chapters)

Form validation in the modern web world


The first task a user often needs to do is sign up in order to access the full content of a website. With the growing number of web applications in the world today, this process should be frictionless and simple, guiding users through it. With new client-side libraries used exclusively for form validation, this process can be accomplished in a much easier fashion than before.

Item 8 – using client-side validation over error pages

In the past, when a user submitted invalid form data, it would be validated on the server side, and the user was redirected to an error page. Nowadays, client-side libraries allow web developers to embed dynamic validation on the client side, sending inline errors preemptively to users to notify them when the data is missing or invalid. This integration helps to ensure that data is validated before sending it to the server, which prevents any friction from completing the sign up process once the user submits their information...