Skip to content

Commit

Permalink
Copy diagnostic messages to built/local to fix localization process (m…
Browse files Browse the repository at this point in the history
…icrosoft#36903)

* Copy diagnostic messages to built/local

* Add description for built/local/diagnosticMessages.generated.json
  • Loading branch information
minestarks authored Feb 20, 2020
1 parent f10c9ea commit 2c16ee3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 2c16ee3

Please sign in to comment.