From bed9e973454ab8fb32a9820dec2fa91f57cd0778 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Wed, 24 Jan 2024 14:50:45 +0100 Subject: [PATCH] fix(SLB-201): move CSS-sources and config into src Otherwise Gatsby will pick `postcss.config.cjs` up when loading `build/styles.css` and break due to missing plugins. --- packages/ui/package.json | 6 +++--- .../components/Organisms/PageContent/BlockForm.stories.tsx | 2 +- packages/ui/{ => src}/iframe.css | 0 packages/ui/{ => src}/postcss.config.cjs | 0 packages/ui/{ => src}/tailwind.config.cjs | 0 packages/ui/{ => src}/tailwind.css | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename packages/ui/{ => src}/iframe.css (100%) rename packages/ui/{ => src}/postcss.config.cjs (100%) rename packages/ui/{ => src}/tailwind.config.cjs (100%) rename packages/ui/{ => src}/tailwind.css (100%) diff --git a/packages/ui/package.json b/packages/ui/package.json index fa0664dc2..fe37a9869 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -30,9 +30,9 @@ "scripts": { "prep:types": "tsc --emitDeclarationOnly", "prep:scripts": "swc ./src -d ./build", - "prep:styles": "NODE_ENV=production pnpm postcss tailwind.css -o build/styles.css", - "prep:iframe": "NODE_ENV=production pnpm postcss iframe.css -o build/iframe.css", - "prep:gutenberg": "NODE_ENV=production PREFIX=gutenberg pnpm postcss tailwind.css -o build/gutenberg.css", + "prep:styles": "NODE_ENV=production pnpm postcss src/tailwind.css -o build/styles.css", + "prep:iframe": "NODE_ENV=production pnpm postcss src/iframe.css -o build/iframe.css", + "prep:gutenberg": "NODE_ENV=production PREFIX=gutenberg pnpm postcss src/tailwind.css -o build/gutenberg.css", "prep:i18n": "formatjs extract 'src/**/*.ts*' --ignore='**/*.d.ts' --ignore='**/*.stories.ts*' --out-file build/translatables.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'\n", "build": "storybook build", "dev": "storybook dev -p 6006 --no-open", diff --git a/packages/ui/src/components/Organisms/PageContent/BlockForm.stories.tsx b/packages/ui/src/components/Organisms/PageContent/BlockForm.stories.tsx index 777f1c134..9d255cea9 100644 --- a/packages/ui/src/components/Organisms/PageContent/BlockForm.stories.tsx +++ b/packages/ui/src/components/Organisms/PageContent/BlockForm.stories.tsx @@ -1,7 +1,7 @@ import { Url } from '@custom/schema'; import { Meta, StoryObj } from '@storybook/react'; -import cmsCss from '../../../../iframe.css?inline'; +import cmsCss from '../../../iframe.css?inline'; import { BlockForm } from './BlockForm'; export default { diff --git a/packages/ui/iframe.css b/packages/ui/src/iframe.css similarity index 100% rename from packages/ui/iframe.css rename to packages/ui/src/iframe.css diff --git a/packages/ui/postcss.config.cjs b/packages/ui/src/postcss.config.cjs similarity index 100% rename from packages/ui/postcss.config.cjs rename to packages/ui/src/postcss.config.cjs diff --git a/packages/ui/tailwind.config.cjs b/packages/ui/src/tailwind.config.cjs similarity index 100% rename from packages/ui/tailwind.config.cjs rename to packages/ui/src/tailwind.config.cjs diff --git a/packages/ui/tailwind.css b/packages/ui/src/tailwind.css similarity index 100% rename from packages/ui/tailwind.css rename to packages/ui/src/tailwind.css