From 4c28beef3401a7a61a3e9e466375bcad4fdde4d6 Mon Sep 17 00:00:00 2001 From: mainframev Date: Thu, 14 Sep 2023 11:58:48 +0200 Subject: [PATCH] chore: add tailwind folder as temporary storage for refactored components --- packages/orbit-components/config/build/consts.mts | 9 ++++++++- .../config/build/generateDeclarations.mts | 2 +- packages/orbit-components/src/tmp-tailwind/.npmignore | 1 + .../src/tmp-tailwind/DummyTailwindComponent.tsx | 7 +++++++ .../src/tmp-tailwind/Tailwind.stories.tsx | 11 +++++++++++ packages/orbit-components/tsconfig-build.json | 1 + 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 packages/orbit-components/src/tmp-tailwind/.npmignore create mode 100644 packages/orbit-components/src/tmp-tailwind/DummyTailwindComponent.tsx create mode 100644 packages/orbit-components/src/tmp-tailwind/Tailwind.stories.tsx diff --git a/packages/orbit-components/config/build/consts.mts b/packages/orbit-components/config/build/consts.mts index 1858f791dc..bf6b24aaba 100644 --- a/packages/orbit-components/config/build/consts.mts +++ b/packages/orbit-components/config/build/consts.mts @@ -11,6 +11,8 @@ export const OUTPUT_PATTERNS = [ export const COMPILE_IGNORE_PATTERNS = [ "**/RenderInRtl.tsx", + // TODO: remove that after TW migration, tailwind is temporary folder + "**/tmp-tailwind/**/*.{ts?(x),d.ts}", "**/*.d.ts", "**/*.stories.*", "**/*.test.*", @@ -19,4 +21,9 @@ export const COMPILE_IGNORE_PATTERNS = [ "**/test-utils.tsx", ]; -export const DECLARATIONS_IGNORE_PATTERN = ["**/RenderInRtl.{tsx,d.ts}", "**/test-utils.d.ts"]; +export const DECLARATIONS_IGNORE_PATTERN = [ + "**/RenderInRtl.{tsx,d.ts}", + "**/test-utils.d.ts", + // TODO: remove that after TW migration, tailwind is temporary folder + "**/tmp-tailwind/**/*.{ts?(x),d.ts}", +]; diff --git a/packages/orbit-components/config/build/generateDeclarations.mts b/packages/orbit-components/config/build/generateDeclarations.mts index a445dc0f20..0c7ed804e1 100644 --- a/packages/orbit-components/config/build/generateDeclarations.mts +++ b/packages/orbit-components/config/build/generateDeclarations.mts @@ -17,7 +17,7 @@ export default async function generateTypeDeclarations() { await $`cpy "**/types.d.ts" ../es --cwd src --parents`; await $`del tsconfig.tsbuildinfo`; // reset potential incremental compilation information - await $`tsc --p tsconfig-build.json `; + await $`tsc --p tsconfig-build.json`; await $`tsc --p tsconfig-build.json --rootDir src --outDir es --declaration --emitDeclarationOnly --moduleResolution node`; console.log(chalk.greenBright.bold("Generating flow declarations...")); diff --git a/packages/orbit-components/src/tmp-tailwind/.npmignore b/packages/orbit-components/src/tmp-tailwind/.npmignore new file mode 100644 index 0000000000..91224e5de8 --- /dev/null +++ b/packages/orbit-components/src/tmp-tailwind/.npmignore @@ -0,0 +1 @@ +**/* diff --git a/packages/orbit-components/src/tmp-tailwind/DummyTailwindComponent.tsx b/packages/orbit-components/src/tmp-tailwind/DummyTailwindComponent.tsx new file mode 100644 index 0000000000..c29f1aead9 --- /dev/null +++ b/packages/orbit-components/src/tmp-tailwind/DummyTailwindComponent.tsx @@ -0,0 +1,7 @@ +import React from "react"; + +const DummyTailwindComponent = () => { + return
dummy
; +}; + +export default DummyTailwindComponent; diff --git a/packages/orbit-components/src/tmp-tailwind/Tailwind.stories.tsx b/packages/orbit-components/src/tmp-tailwind/Tailwind.stories.tsx new file mode 100644 index 0000000000..7079275e77 --- /dev/null +++ b/packages/orbit-components/src/tmp-tailwind/Tailwind.stories.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +import DummyTailwindComponent from "./DummyTailwindComponent"; + +export default { + title: "Tailwind", +}; + +export const DummyTailwindComponentStory = () => { + return ; +}; diff --git a/packages/orbit-components/tsconfig-build.json b/packages/orbit-components/tsconfig-build.json index c2f41d94e8..2e4333092e 100644 --- a/packages/orbit-components/tsconfig-build.json +++ b/packages/orbit-components/tsconfig-build.json @@ -15,6 +15,7 @@ "**/__tests__/**/*", "**/__typetests__/**/*", "**/*.stories.*", + "**/tmp-tailwind/**", "**/RenderInRtl.tsx" ] }