fix(build-compile): allow skipping langs in a fresh build (#2307)

This commit is contained in:
Filipe Silva 2016-09-13 18:56:18 +01:00 committed by Kathy Walrath
parent d1987b183b
commit dfc671b99f
1 changed files with 4 additions and 2 deletions

View File

@ -1044,8 +1044,10 @@ function restoreApiHtml() {
const relApiDir = path.join('docs', lang, vers, 'api');
const wwwApiSubdir = path.join('www', relApiDir);
const backupApiSubdir = path.join('www-backup', relApiDir);
gutil.log(`cp ${backupApiSubdir} ${wwwApiSubdir}`)
fs.copySync(backupApiSubdir, wwwApiSubdir);
if (fs.existsSync(backupApiSubdir) || argv.forceSkipApi !== true) {
gutil.log(`cp ${backupApiSubdir} ${wwwApiSubdir}`)
fs.copySync(backupApiSubdir, wwwApiSubdir);
}
});
}