diff --git a/apps/storybook-ui/.eslintrc.cjs b/apps/storybook-ui/.eslintrc.cjs deleted file mode 100644 index 5567eeed..00000000 --- a/apps/storybook-ui/.eslintrc.cjs +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import("eslint").Linter.Config} */ -module.exports = { - extends: ['@repo/eslint-config/storybook.js'], -}; diff --git a/apps/storybook-ui/.gitignore b/apps/storybook-ui/.gitignore deleted file mode 100644 index bc6d3062..00000000 --- a/apps/storybook-ui/.gitignore +++ /dev/null @@ -1,26 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -*storybook.log \ No newline at end of file diff --git a/apps/storybook-ui/.storybook/main.ts b/apps/storybook-ui/.storybook/main.ts deleted file mode 100644 index 52a8b490..00000000 --- a/apps/storybook-ui/.storybook/main.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type { StorybookConfig } from '@storybook/react-vite'; - -import { join, dirname, resolve } from 'path'; - -/** - * This function is used to resolve the absolute path of a package. - * It is needed in projects that use Yarn PnP or are set up within a monorepo. - */ -function getAbsolutePath(value: string): any { - return dirname(require.resolve(join(value, 'package.json'))); -} -const config: StorybookConfig = { - stories: ['../stories/*.stories.tsx', '../stories/**/*.stories.tsx'], - addons: [ - getAbsolutePath('@storybook/addon-onboarding'), - getAbsolutePath('@storybook/addon-links'), - getAbsolutePath('@storybook/addon-essentials'), - getAbsolutePath('@chromatic-com/storybook'), - getAbsolutePath('@storybook/addon-interactions'), - ], - framework: { - name: getAbsolutePath('@storybook/react-vite'), - options: {}, - }, - - async viteFinal(config) { - // customize the Vite config here - return { - ...config, - define: { 'process.env': {} }, - resolve: { - alias: [ - { - find: 'ui', - replacement: resolve(__dirname, '../../../packages/ui/'), - }, - ], - }, - }; - }, - - docs: { - autodocs: 'tag', - }, -}; -export default config; diff --git a/apps/storybook-ui/.storybook/preview.ts b/apps/storybook-ui/.storybook/preview.ts deleted file mode 100644 index adcda96b..00000000 --- a/apps/storybook-ui/.storybook/preview.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { Preview } from '@storybook/react'; - -const preview: Preview = { - parameters: { - controls: { - matchers: { - color: /(background|color)$/i, - date: /Date$/i, - }, - }, - }, -}; - -export default preview; diff --git a/apps/storybook-ui/package.json b/apps/storybook-ui/package.json deleted file mode 100644 index 9ee3ab5b..00000000 --- a/apps/storybook-ui/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "storybook-ui", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "storybook dev -p 6006 --ci", - "build": "storybook build", - "build-storybook": "storybook build", - "clean": "rm -rf .turbo && rm -rf node_modules", - "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.mdx", - "chromatic": "npx chromatic --project-token=chpt_34c705b51a7f543" - }, - "dependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" - }, - "devDependencies": { - "@chromatic-com/storybook": "^1.3.5", - "@repo/eslint-config": "*", - "@repo/ui": "*", - "@storybook/addon-essentials": "^8.0.10", - "@storybook/addon-interactions": "^8.0.10", - "@storybook/addon-links": "^8.0.10", - "@storybook/addon-onboarding": "^8.0.10", - "@storybook/blocks": "^8.0.10", - "@storybook/react": "^8.0.10", - "@storybook/react-vite": "^8.0.10", - "@storybook/test": "^8.0.10", - "@types/react": "^18.2.66", - "@types/react-dom": "^18.2.22", - "@typescript-eslint/eslint-plugin": "^7.2.0", - "@typescript-eslint/parser": "^7.2.0", - "@vitejs/plugin-react": "^4.2.1", - "eslint": "^8.57.0", - "eslint-plugin-mdx": "^3.1.5", - "eslint-plugin-only-warn": "^1.1.0", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-react-refresh": "^0.4.6", - "eslint-plugin-storybook": "^0.8.0", - "storybook": "^8.0.10", - "typescript": "^5.2.2", - "vite": "^5.2.0" - } -} diff --git a/apps/storybook-ui/stories/chromatic-logo.stories.tsx b/apps/storybook-ui/stories/chromatic-logo.stories.tsx deleted file mode 100644 index cfb83a96..00000000 --- a/apps/storybook-ui/stories/chromatic-logo.stories.tsx +++ /dev/null @@ -1,14 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react'; -import { ChromaticLogo } from '@repo/ui'; - -const meta = { - title: 'ChromaticLogo', - component: ChromaticLogo, -} satisfies Meta; - -export default meta; -type Story = StoryObj; - -export const Primary: Story = { - render: () => , -}; diff --git a/apps/storybook-ui/tsconfig.json b/apps/storybook-ui/tsconfig.json deleted file mode 100644 index 1a0e3e85..00000000 --- a/apps/storybook-ui/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@repo/typescript-config/react-library.json", - "include": ["."], - "exclude": ["dist", "build", "node_modules"] -}