Copy diagnostic messages to built/local to fix localization process (#36903)
* Copy diagnostic messages to built/local * Add description for built/local/diagnosticMessages.generated.json
This commit is contained in:
Родитель
f10c9ea471
Коммит
2c16ee311e
13
Gulpfile.js
13
Gulpfile.js
|
@ -408,7 +408,18 @@ task("generate-types-map", generateTypesMap);
|
|||
const cleanTypesMap = () => del("built/local/typesMap.json");
|
||||
cleanTasks.push(cleanTypesMap);
|
||||
|
||||
const buildOtherOutputs = parallel(buildCancellationToken, buildTypingsInstaller, buildWatchGuard, generateTypesMap);
|
||||
// Drop a copy of diagnosticMessages.generated.json into the built/local folder. This allows
|
||||
// it to be synced to the Azure DevOps repo, so that it can get picked up by the build
|
||||
// pipeline that generates the localization artifacts that are then fed into the translation process.
|
||||
const builtLocalDiagnosticMessagesGeneratedJson = "built/local/diagnosticMessages.generated.json";
|
||||
const copyBuiltLocalDiagnosticMessages = () => src(diagnosticMessagesGeneratedJson)
|
||||
.pipe(newer(builtLocalDiagnosticMessagesGeneratedJson))
|
||||
.pipe(dest("built/local"));
|
||||
|
||||
const cleanBuiltLocalDiagnosticMessages = () => del(builtLocalDiagnosticMessagesGeneratedJson);
|
||||
cleanTasks.push(cleanBuiltLocalDiagnosticMessages);
|
||||
|
||||
const buildOtherOutputs = parallel(buildCancellationToken, buildTypingsInstaller, buildWatchGuard, generateTypesMap, copyBuiltLocalDiagnosticMessages);
|
||||
task("other-outputs", series(preBuild, buildOtherOutputs));
|
||||
task("other-outputs").description = "Builds miscelaneous scripts and documents distributed with the LKG";
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче