Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Grunt

You're reading from   Learning Grunt Monitor and automate complex JavaScript tasks and processes by obtaining a practical understanding of Grunt

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher Packt
ISBN-13 9781785888809
Length 184 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Douglas Reynolds Douglas Reynolds
Author Profile Icon Douglas Reynolds
Douglas Reynolds
Arrow right icon
View More author details
Toc

Common Grunt plugins and their purposes

At this point, you should be asking yourself, what plugins can benefit me the most and why? Once you ask this question, you may find that a natural response is to ask further, what plugins are available? That is exactly the intended purpose of this section: to introduce useful grunt plugins and describe their intended purpose.

Linting JavaScript – contrib-jshint

To know more about contrib-jshint, you can refer https://www.npmjs.com/package/grunt-contrib-jshint:

  • grunt jshint: This lints JavaScript files manually

The contrib-jshint plugin is to run automated JavaScript error detection and will help with identifying potential problems with your code that may surface during runtime. When the plugin is run, it will scan your JavaScript code and issue warnings on preconfigured options. There are a large number of error messages that jshint might provide, and it can be difficult at times to understand exactly what a particular message might be referring...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime