code: function copyTemplateFiles (templateDir, projectDir, isSubDir) {
      var copyPath;
      // if template is a www dir
      if (path.basename(templateDir) === 'www') {
          copyPath = path.resolve(templateDir);
          fs.copySync(copyPath, path.resolve(projectDir, 'www'));
      } else {
          var templateFiles = fs.readdirSync(templateDir);
          // Remove directories, and files that are unwanted
          if (!isSubDir) {
              var excludes = ['package.json', 'RELEASENOTES.md', '.git', 'NOTICE', 'LICENSE', 'COPYRIGHT', '.npmignore'];
              templateFiles = templateFiles.filter(function (value) {
                  return excludes.indexOf(value) < 0;
              });
          }
          // Copy each template file after filter
          templateFiles.forEach(f => {
              copyPath = path.resolve(templateDir, f);
              fs.copySync(copyPath, path.resolve(projectDir, f));
          });
      }
  }
docs: Copies template files, and directories into a Cordova project directory.
  If the template is a www folder, the www folder is simply copied
  Otherwise if the template exists in a subdirectory everything is copied
  Otherwise package.json, RELEASENOTES.md, .git, NOTICE, LICENSE, COPYRIGHT, and .npmignore are not copied over.
  A template directory, and project directory must be passed.
  templateDir - Template directory
  projectDir - Project directory
  isSubDir - boolean is true if template has subdirectory structure (see code around line 229)