2024-06-20 10:00:58 +00:00
|
|
|
import gulp from "gulp";
|
2025-06-19 01:51:34 +00:00
|
|
|
import path from "path/posix";
|
2024-06-20 10:00:58 +00:00
|
|
|
|
|
|
|
|
import gulpPlumber from "gulp-plumber";
|
|
|
|
|
import gulpYaml from "gulp-yaml";
|
2025-06-19 01:51:34 +00:00
|
|
|
import { generatedCodeFolder } from "./config.js";
|
2024-06-20 10:00:58 +00:00
|
|
|
|
|
|
|
|
const translationsSourceDir = path.join("..", "translations");
|
|
|
|
|
|
|
|
|
|
export function convertToJson() {
|
|
|
|
|
return gulp
|
|
|
|
|
.src(path.join(translationsSourceDir, "*.yaml"))
|
|
|
|
|
.pipe(gulpPlumber())
|
|
|
|
|
.pipe(gulpYaml({ space: 2, safe: true }))
|
2025-06-19 01:51:34 +00:00
|
|
|
.pipe(gulp.dest(generatedCodeFolder));
|
2024-06-20 10:00:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const fullBuild = convertToJson;
|