Chapter 2
Manage Files

We’ve spent a little time with Grunt covering the basics, but running fun little JavaScript programs doesn’t really show off what Grunt can do. When you’re using Grunt in one of your projects, it’s very likely you’ll do some work with the file system. For example, you might read some settings in from a file, or you might write your own files to disk. You might need to create files and folders or copy files around. You can do all of these things by calling out to the operating system yourself using Node.js, but Grunt provides tools to do it easily. In this chapter we’ll explore those tools as we build a simple Grunt task to copy a manifest of files in our project to a working folder that we can upload to our web server.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.155.54