code: function linkFromTemplate (templateDir, projectDir) {
      var linkSrc, linkDst, linkFolders, copySrc, copyDst;
      function rmlinkSync (src, dst, type) {
          if (src && dst) {
              fs.removeSync(dst);
              if (fs.existsSync(src)) {
                  fs.symlinkSync(src, dst, type);
              }
          }
      }
      // if template is a www dir
      if (path.basename(templateDir) === 'www') {
          linkSrc = path.resolve(templateDir);
          linkDst = path.join(projectDir, 'www');
          rmlinkSync(linkSrc, linkDst, 'dir');
          copySrc = path.join(templateDir, 'config.xml');
      } else {
          linkFolders = ['www', 'merges', 'hooks'];
          // Link each folder
          for (var i = 0; i < linkFolders.length; i++) {
              linkSrc = path.join(templateDir, linkFolders[i]);
              linkDst = path.join(projectDir, linkFolders[i]);
              rmlinkSync(linkSrc, linkDst, 'dir');
          }
          linkSrc = path.join(templateDir, 'config.xml');
          linkDst = path.join(projectDir, 'config.xml');
          rmlinkSync(linkSrc, linkDst, 'file');
          copySrc = path.join(templateDir, 'www', 'config.xml');
      }
      // if template/www/config.xml then copy to project/config.xml
      copyDst = path.join(projectDir, 'config.xml');
      if (!fs.existsSync(copyDst) && fs.existsSync(copySrc)) {
          fs.copySync(copySrc, copyDst);
      }
  }
docs: Removes existing files and symlinks them if they exist.
  Symlinks folders: www, merges, hooks
  Symlinks file: config.xml (but only if it exists outside of the www folder)
  If config.xml exists inside of template/www, COPY (not link) it to project/