From 15e2f11b69403cd687c3e65279583c62d0c9aeda Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Fri, 1 Aug 2025 13:12:44 +0800 Subject: [PATCH] :package: Chore(custom): remove unused files --- .env.development | 1 - scripts/README.md | 0 scripts/yamltojson.js | 27 --------------------------- 3 files changed, 28 deletions(-) delete mode 100644 .env.development delete mode 100644 scripts/README.md delete mode 100644 scripts/yamltojson.js diff --git a/.env.development b/.env.development deleted file mode 100644 index b25e414d..00000000 --- a/.env.development +++ /dev/null @@ -1 +0,0 @@ -VITE_DEV_SERVER_URL=http://localhost:5173 diff --git a/scripts/README.md b/scripts/README.md deleted file mode 100644 index e69de29b..00000000 diff --git a/scripts/yamltojson.js b/scripts/yamltojson.js deleted file mode 100644 index 6bdd8689..00000000 --- a/scripts/yamltojson.js +++ /dev/null @@ -1,27 +0,0 @@ -// convert-yaml-to-json.mjs -import fs from 'node:fs/promises' -import path from 'node:path' -import { fileURLToPath } from 'node:url' - -import yaml from 'js-yaml' - -const __filename = fileURLToPath(import.meta.url) -const __dirname = path.dirname(__filename) - -// Change these paths as needed -const inputPath = path.resolve('./resources/i18n/zh-TW.yml') -const outputPath = path.resolve(__dirname, './zh-TW.json') - -async function convertYamlToJson (yamlFile, jsonFile) { - try { - const fileContent = await fs.readFile(yamlFile, 'utf8') - const data = yaml.load(fileContent) - const jsonContent = JSON.stringify(data, null, 2) - await fs.writeFile(jsonFile, jsonContent, 'utf8') - console.log(`Converted ${yamlFile} to ${jsonFile}`) - } catch (err) { - console.error('Error during conversion:', err) - } -} - -convertYamlToJson(inputPath, outputPath)