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)

Using third-party tasks


Although creating our own tasks is relatively straightforward, a vast number of plugins have already been implemented, providing tasks for many common use cases. Therefore, we should make sure we've thoroughly searched before we reinvent the wheel.

Searching for tasks

We've covered searching for modules in Chapter 2, Setting Up Grunt, in the section on npm, where we covered basic npm commands, including npm search. However, for those more comfortable with a web search, we can also use the Grunt website's plugin page (http://gswg.io#grunt-plugins). Once an hour, the Grunt team will execute npm search gruntplugin and store the results. When you visit the plugin page, this cached list will be retrieved and can be filtered by entering a query into the text input. Keep in mind, however, that even if a plugin was called grunt-foo, it would only be contained in this page if it were also tagged with gruntplugin (which some may forget to do). So when searching for preexisting...