Skip to main content

Using Grunt with JavaScript

  • Chapter
  • 748 Accesses

Abstract

At this point, I’ve covered setting up Grunt on a project, and you’ve seen how it can help when working with CSS and HTML. Next, we’ll start to explore the benefits of using Grunt while developing in JavaScript. As mentioned, when you were first introduced to Grunt, it is written on top of the Node.js platform, a JavaScript engine. This fact makes Grunt the perfect tool to use while working with JavaScript, as developers can exploit existing Node.js modules to rapidly process plug-ins to extend their workflow. In this chapter, I’ll cover how Grunt can help with JavaScript templating, working with JavaScript modules, and automated testing. First, I’ll outline how we plan to extend our to-do list application and use Grunt to automate our workflow and build process.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 James Cryer

About this chapter

Cite this chapter

Cryer, J. (2015). Using Grunt with JavaScript. In: Pro Grunt.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0013-1_4

Download citation

Publish with us

Policies and ethics