mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			677 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			677 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const path = require("path");
 | |
| 
 | |
| const yaml = require("gulp-yaml");
 | |
| 
 | |
| const translationsSourceDir = path.join(__dirname, "..", "translations");
 | |
| const translationsJsonDir = path.join(__dirname, "..", "src", "js", "built-temp");
 | |
| 
 | |
| function gulptasksTranslations($, gulp) {
 | |
|     gulp.task("translations.convertToJson", () => {
 | |
|         return gulp
 | |
|             .src(path.join(translationsSourceDir, "*.yaml"))
 | |
|             .pipe($.plumber())
 | |
|             .pipe(yaml({ space: 2, safe: true }))
 | |
|             .pipe(gulp.dest(translationsJsonDir));
 | |
|     });
 | |
| 
 | |
|     gulp.task("translations.fullBuild", gulp.series("translations.convertToJson"));
 | |
| }
 | |
| 
 | |
| module.exports = {
 | |
|     gulptasksTranslations,
 | |
| };
 |