What’s Next?

Grunt’s built-in file utilities make it easy to work with files and folders across operating systems. They form the foundation of many of Grunt’s plug-ins. In addition, the templating mechanism can ease configuration and text generation. Before you move on, try these additional things:

  • Inside the copyFiles task, use this.requires to make the copyFiles task depend on the clean task.

  • Break the code that creates the version.txt into its own task. Make sure it depends on the successful completion of the copyFiles task and add your new task to the deploy task.

Now let’s look at multitasks, a powerful Grunt feature that many plug-ins rely on heavily.

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

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