From b496fb841e6ac27f6d9abbe59ac906f1145450c7 Mon Sep 17 00:00:00 2001 From: Matthew Kalinin Date: Thu, 18 Apr 2024 18:10:02 +0300 Subject: [PATCH] rename generated files --- docs/{icons.md => icons.generated.md} | 0 src/icons/{icon-colors.ts => icon-colors.generated.ts} | 0 src/icons/{icon-name.ts => icon-name.generated.ts} | 0 src/icons/{icons.ts => icons.generated.ts} | 0 src/icons/index.ts | 6 +++--- src/icons/types.ts | 2 +- static/icons/cafe_24.svg | 2 +- tools/icons/generate-colors.ts | 2 +- tools/icons/generate-docs.ts | 2 +- tools/icons/generate-imports.ts | 2 +- tools/icons/generate-types.ts | 2 +- 11 files changed, 9 insertions(+), 9 deletions(-) rename docs/{icons.md => icons.generated.md} (100%) rename src/icons/{icon-colors.ts => icon-colors.generated.ts} (100%) rename src/icons/{icon-name.ts => icon-name.generated.ts} (100%) rename src/icons/{icons.ts => icons.generated.ts} (100%) diff --git a/docs/icons.md b/docs/icons.generated.md similarity index 100% rename from docs/icons.md rename to docs/icons.generated.md diff --git a/src/icons/icon-colors.ts b/src/icons/icon-colors.generated.ts similarity index 100% rename from src/icons/icon-colors.ts rename to src/icons/icon-colors.generated.ts diff --git a/src/icons/icon-name.ts b/src/icons/icon-name.generated.ts similarity index 100% rename from src/icons/icon-name.ts rename to src/icons/icon-name.generated.ts diff --git a/src/icons/icons.ts b/src/icons/icons.generated.ts similarity index 100% rename from src/icons/icons.ts rename to src/icons/icons.generated.ts diff --git a/src/icons/index.ts b/src/icons/index.ts index 6cb8ce8..b536d5c 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -1,3 +1,3 @@ -export {IconColor, iconColors} from './icon-colors'; -export {IconName} from './icon-name'; -export {icons} from './icons'; +export {IconColor, iconColors} from './icon-colors.generated'; +export {IconName} from './icon-name.generated'; +export {icons} from './icons.generated'; diff --git a/src/icons/types.ts b/src/icons/types.ts index 3e3063b..a6e7657 100644 --- a/src/icons/types.ts +++ b/src/icons/types.ts @@ -1,4 +1,4 @@ -import {IconName} from './icon-name'; +import {IconName} from './icon-name.generated'; export type Icons = { [key in IconName]: string | null; diff --git a/static/icons/cafe_24.svg b/static/icons/cafe_24.svg index 05b5515..a27232b 100644 --- a/static/icons/cafe_24.svg +++ b/static/icons/cafe_24.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tools/icons/generate-colors.ts b/tools/icons/generate-colors.ts index a035d77..4f263aa 100644 --- a/tools/icons/generate-colors.ts +++ b/tools/icons/generate-colors.ts @@ -19,5 +19,5 @@ export const generateColorsFile = async (fetchedColors: FetchedColors) => { export type IconColor = keyof typeof iconColors`; const formattedContent = await prettierFormat(content, 'typescript'); - await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-colors.ts'), formattedContent); + await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-colors.generated.ts'), formattedContent); }; diff --git a/tools/icons/generate-docs.ts b/tools/icons/generate-docs.ts index 8e229f7..b7753c6 100644 --- a/tools/icons/generate-docs.ts +++ b/tools/icons/generate-docs.ts @@ -27,5 +27,5 @@ export const generateIconsDocsList = async (iconNames: string[]) => { }) .join('\n'); const formattedContent = await prettierFormat(content, 'markdown'); - await fs.writeFile(path.join(DOCS_FILE_PATH, 'icons.md'), formattedContent); + await fs.writeFile(path.join(DOCS_FILE_PATH, 'icons.generated.md'), formattedContent); }; diff --git a/tools/icons/generate-imports.ts b/tools/icons/generate-imports.ts index bd1225b..8cca0ad 100644 --- a/tools/icons/generate-imports.ts +++ b/tools/icons/generate-imports.ts @@ -27,5 +27,5 @@ export const generateImports = async (iconsDescription: IconDescription[], iconN ${iconNamesObject} }`; const formattedContent = await prettierFormat(fileContent, 'typescript'); - await fs.writeFile(path.join(SRC_ICONS_PATH, 'icons.ts'), formattedContent); + await fs.writeFile(path.join(SRC_ICONS_PATH, 'icons.generated.ts'), formattedContent); }; diff --git a/tools/icons/generate-types.ts b/tools/icons/generate-types.ts index da8758c..b5cf9c9 100644 --- a/tools/icons/generate-types.ts +++ b/tools/icons/generate-types.ts @@ -10,5 +10,5 @@ export const generateIconsTypes = async (iconNames: string[]) => { export type ${type} =${iconNames.map((name) => `| '${name}'`).join('\n')}; `; const formattedContent = await prettierFormat(content, 'typescript'); - await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-name.ts'), formattedContent); + await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-name.generated.ts'), formattedContent); };