Skip to content

Commit

Permalink
chore: add tailwind folder as temporary storage for refactored compon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
mainframev committed Sep 19, 2023
1 parent e5b40af commit 4c28bee
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
9 changes: 8 additions & 1 deletion packages/orbit-components/config/build/consts.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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.*",
Expand All @@ -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}",
];
Original file line number Diff line number Diff line change
Expand Up @@ -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..."));
Expand Down
1 change: 1 addition & 0 deletions packages/orbit-components/src/tmp-tailwind/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const DummyTailwindComponent = () => {
return <div className="text-red-dark">dummy</div>;
};

export default DummyTailwindComponent;
11 changes: 11 additions & 0 deletions packages/orbit-components/src/tmp-tailwind/Tailwind.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

import DummyTailwindComponent from "./DummyTailwindComponent";

export default {
title: "Tailwind",
};

export const DummyTailwindComponentStory = () => {
return <DummyTailwindComponent />;
};
1 change: 1 addition & 0 deletions packages/orbit-components/tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"**/__tests__/**/*",
"**/__typetests__/**/*",
"**/*.stories.*",
"**/tmp-tailwind/**",
"**/RenderInRtl.tsx"
]
}

0 comments on commit 4c28bee

Please sign in to comment.