Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Mastering Grunt
Table of Contents
Mastering Grunt
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
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
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
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
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
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
Index
← Prev
Back
Next →
← Prev
Back
Next →