-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostprocess.ts
More file actions
27 lines (20 loc) · 829 Bytes
/
postprocess.ts
File metadata and controls
27 lines (20 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Language } from "budgie";
import { IFileSystem } from "../fileSystem";
import { ILogger } from "../logger";
import { printActionsPrefix, printActionsSummary } from "../utils/printing";
import { createLanguageMetadataFiles } from "./metadata";
export interface IPostprocessDependencies {
fileSystem: IFileSystem;
languages: ReadonlyArray<Language>;
logger: ILogger;
project?: string;
}
export const postprocess = async (dependencies: IPostprocessDependencies): Promise<void> => {
if (dependencies.project === undefined) {
return;
}
dependencies.logger.log();
printActionsPrefix(dependencies.logger, dependencies.languages, "Postprocessing", "language");
await createLanguageMetadataFiles(dependencies);
printActionsSummary(dependencies.logger, "Postprocessing");
};