mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
refactor: remove deprecated YAML template files
- Deleted all 'template.yml' files from various blueprints as part of the transition to TOML format. - Updated the script to delete the 'template.yml' files instead of converting them to 'template.toml'.
This commit is contained in:
@@ -22,11 +22,8 @@ function processDirectory(dirPath) {
|
||||
if (stat.isDirectory()) {
|
||||
processDirectory(filePath);
|
||||
} else if (file === "template.yml") {
|
||||
console.log(`Converting ${filePath}`);
|
||||
const yamlContent = fs.readFileSync(filePath, "utf8");
|
||||
const tomlContent = convertYamlToToml(yamlContent);
|
||||
const tomlPath = path.join(dirPath, "template.toml");
|
||||
fs.writeFileSync(tomlPath, tomlContent);
|
||||
console.log(`Deleting ${filePath}`);
|
||||
fs.unlinkSync(filePath);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user