0%

Book Description

Grunt is everywhere. JavaScript projects from jQuery to Twitter Bootstrap use Grunt to convert code, run tests, and produce distributions for production. It's a build tool in the spirit of Make and Rake, but written with modern apps in mind. This book gets you up to speed with Grunt using practical hands-on examples, so you can wrangle your projects with ease. You'll learn how to create and maintain tasks and project builds, and automate your workflow with plugins and custom tasks.

Table of Contents

  1. Automate with Grunt
    1. Copyright
    2. For the Best Reading Experience...
    3. Table of Contents
    4. Early praise for Automate with Grunt
    5. Acknowledgments
    6. Preface
      1. What’s in This Book
      2. Who Should Read This Book
      3. What You Need
      4. Conventions
      5. Where to Go for Help
    7. Chapter 1: The Very Basics
      1. Installing Grunt and Configuring a Gruntfile
      2. Our First Task
      3. Handling Parameters
      4. Throwing Errors
      5. Chaining Tasks
      6. Describing Tasks
      7. What’s Next?
    8. Chapter 2: Manage Files
      1. Creating the Project
      2. Creating and Deleting Directories
      3. Recursive File Copying
      4. Using Values from Files
      5. What’s Next?
    9. Chapter 3: One Task, Many Outputs
      1. Introducing Multitasks
      2. Multitasks and Files
      3. What’s Next?
    10. Chapter 4: Build a Workflow
      1. Creating the App
      2. Wrangling the JavaScript
      3. Adding Some Style
      4. Simplifying the Build
      5. Watching Files for Changes
      6. Refreshing the Browser Automatically
      7. What’s Next?
    11. Chapter 5: Create a Plug-in
      1. The Structure of a Plug-in
      2. Creating the Plug-in Skeleton
      3. Building Our Plug-in’s Logic
      4. Using JSHint to Check for Errors and Problems
      5. What’s Next?
    12. Chapter 6: Create Project Scaffolds
      1. Using Existing Templates
      2. Creating a Custom Template
      3. Including Files Conditionally
      4. Including File Contents Conditionally
      5. What’s Next?
    13. Bibliography
      1. You May Be Interested In…
3.15.168.203