By Brian P. Hogan
Each bankruptcy includes hands-on routines and concepts for additional learn. no matter if you rock Ruby or sling C#, Grunt may be an invaluable addition for your toolbox.
What You Need:
Discover ways to make extra effective apps, with only one language!
* comprises quite a few hands-on examples
* Explains implementation of real-time apps together with Socket. IO and HTML5, and WebSockets
* Addresses useful Node. js merits from particular layout choices
* comprises an interactive on-line part with pattern chapters
* Explains parts of stand out apps together with brevity and benchmarks
- Learning Single-page Web Application Development
- Getting Started with Knockout.js for .NET Developers
What You Need You’ll need a computer running Windows 7 or 8 or a modern version of Linux or OS X. You’ll need the ability to install software on your computer, as well as an active Internet connection. You’ll also need a text editor or your IDE of choice.  You’ll find installers for all platforms there. Download the one for your operating system and install it using the default options. Finally, Grunt is a command-line utility, so you’ll use the Command Prompt on Windows or the Terminal on OS X or Linux.
And if there are folders within folders, we’ll have to handle those the same way. isDir to detect whether the source element is a file or a directory. If it’s a file, we print the file to the screen and do the file copy like before. recurse, which runs the callback function of our choice against each file or folder in the structure. recurse executes the callback, it sends the source file’s absolute path as the first parameter. It can send the root directory, the current file’s directory, and the current file’s name as arguments if the callback function accepts them.
WorkingDirectory')); }); One of the biggest advantages of using these Grunt utilities instead of the raw operating-system commands is that they will work on multiple operating systems. The syntax for recursively deleting folders is very different between Linux and Windows. Now let’s look at how we copy the files over. Copying Files Our project may have lots of files that we don’t want to deploy to the web server. js or the node_modules folder if we’re building a basic website. So we’ll need to tell Grunt what files we want to copy over.