Mastering Grunt


Mastering Grunt
eBook: $13.99
Formats: PDF, PacktLib, ePub and Mobi formats
$11.89
save 15%!
Print + free eBook + free PacktLib access to the book: $36.98    Print cover: $22.99
$22.99
save 38%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Master the development of your web applications by combining Grunt with an army of other useful tools
  • Learn about the key tasks behind devops integration and automation so you can utilize Grunt in a team-working environment
  • Accelerate your web development abilities by employing best practices, including SEO, page speed optimization, and responsive design

Book Details

Language : English
Paperback : 110 pages [ 235mm x 191mm ]
Release Date : April 2014
ISBN : 1783980923
ISBN 13 : 9781783980925
Author(s) : Daniel Li
Topics and Technologies : All Books, Application Development, Open Source


Table of Contents

Preface
Chapter 1: Getting Started
Chapter 2: Developing a Blog with Jade and Sass
Chapter 3: Making an Employee Management System
Chapter 4: Final Project – Simple Bulletin Board System
Chapter 5: Best Practices for Modern Web Applications
Index
  • Chapter 1: Getting Started
    • Introducing Grunt
      • Plugins and Gruntfile.js
      • Dissecting the Gruntfile.js configuration file
        • Constants and functions
        • Configuration
        • User-defined tasks
    • Introducing Git
      • Using Git
      • Installing Git
        • Installing Git on Windows
        • Installing Git on Mac OS X
        • Installing Git on Linux
      • Git basics
    • Introducing GitHub
      • Using GitHub
      • Installing GitHub
    • Introducing npm
      • Why use npm?
      • Installing npm
        • Installing npm on Windows
        • Installing npm on Mac OS X and Linux
      • Using npm
    • Introducing Bower
      • Using Bower
      • Installing Bower
      • Bower basics
    • Installing Grunt
      • Installation steps
      • Troubleshooting
        • Grunt: command not found
        • Fatal error: Unable to find local grunt
    • Deploying a Hello World page
    • Summary
  • Chapter 2: Developing a Blog with Jade and Sass
    • A brief summary of Jade
    • A brief summary of Sass
      • What is Sass?
    • Concatenation and minification
    • Building the blog
      • Installing the required Grunt plugins
      • Configuring grunt-contrib-watch
      • Developing the blog
      • Implementing the custom build Grunt task
    • Summary
  • Chapter 3: Making an Employee Management System
    • A brief summary of CoffeeScript
    • Building the employee management system
      • Installing the required Grunt plugins
      • Configuring grunt-contrib-watch
      • Developing the employee management system
      • Implementing the custom build Grunt task
    • Summary
  • Chapter 4: Final Project – Simple Bulletin Board System
    • Installing the required Grunt plugins
      • Configuring grunt-contrib-watch
    • Developing a simple Bulletin Board System (BBS)
      • Writing Mocha tests using Zombie and Assert
      • Implementing the custom test Grunt task
      • Implementing the custom build Grunt task
    • Summary
  • Chapter 5: Best Practices for Modern Web Applications
    • The importance of search engine optimization
      • Item 1 – using keywords effectively
      • Item 2 – header tags are powerful
      • Item 3 – make sure to have alternative attributes for images
      • Item 4 – enforcing clean URLs
      • Item 5 – backlink whenever safe and possible
      • Item 6 – handling HTTP status codes properly
      • Item 7 – making use of your robots.txt and site map files
      • Using Grunt to reinforce SEO practices
    • Form validation in the modern web world
      • Item 8 – using client-side validation over error pages
      • Item 9 – differentiating required and optional information
      • Item 10 – avoiding confusing fields
      • Item 11 – using confirmation fields for pertinent data
      • Item 12 – using custom inputs for complex data types
      • Item 13 – preventing autovalidation with CAPTCHAs
      • Item 14 – reinforcing data integrity with server-side validation
      • Using Grunt to automate form testing
    • Designing interfaces for the mobile generation
      • Item 15 – designing preemptively with mobile in mind
      • Item 16 – lazy load content using JavaScript
      • Item 17 – defer parsing of JavaScript
      • Using Grunt to reduce page load time
    • Summary

Daniel Li

Daniel Li is currently an independent consultant for small- and medium-sized businesses, and resides in Waterloo, Ontario. Having gained experience at over a dozen institutions since 2009, he leverages his knowledge of Grunt.js and modern web development in writing this book. He has won over $20,000 in coding competitions since 2009, and most recently won the Kik Cup Hackathon in Fall 2013. His open source contributions over the last three years helped him earn a place as a finalist in Canada's Top 20 Under 20 2013 list. He occasionally answers questions on the collaborative question and answer website, stackoverflow.com, as a top 4 percent user. He has also authored Instant Brainshark, Packt Publishing.

Sorry, we don't have any reviews for this title yet.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Mastering Grunt +    RabbitMQ Essentials =
50% Off
the second eBook
Price for both: €16.55

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Build any web application using Grunt.js
  • Explore the basics revolving around source control with Git
  • Understand the importance behind package management with npm and Bower
  • Use Grunt alongside Jade, the templating engine, to automate the compression and obfuscation process
  • Ease the compilation process by working with Sass, a CSS preprocessor
  • Understand the fundamentals involved in CoffeeScript development
  • Implement headless testing using Mocha, a JavaScript-based testing engine
  • Automate the frontend testing process using Grunt

In Detail

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.

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.

Approach

This easy-to-understand tutorial provides you with several engaging projects that show you how to utilize Grunt with various web technologies, teaching you how to master build automation and testing with Grunt in your applications.

Who this book is for

This book will give web developers and sysadmins a head start in fully understanding the importance of the described web technologies and how to automate their processes using Grunt.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software