fix storybook build

This commit is contained in:
fmtabbara
2024-07-09 15:09:00 +01:00
parent 10ade80da0
commit 96617469e9
17 changed files with 10070 additions and 14622 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@storybook/addon-actions": "^6.5.8",
"@storybook/addon-essentials": "^6.5.8",
+1 -1
View File
@@ -36,7 +36,7 @@
"zod": "^3.21.4"
},
"devDependencies": {
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@svgr/webpack": "^6.1.1",
"@testing-library/jest-dom": "^5.14.1",
+1
View File
@@ -32,6 +32,7 @@
"@nymproject/node-tester": "1.2.4-rc.1",
"@nymproject/react": "workspace:^1.0.0",
"@nymproject/types": "workspace:^1.0.0",
"@nymproject/webpack": "workspace:^1.0.0",
"@storybook/react": "^6.5.15",
"@tauri-apps/api": "^1.2.0",
"@tauri-apps/tauri-forage": "^1.0.0-beta.2",
@@ -1,10 +0,0 @@
import * as React from 'react';
import { ComponentMeta } from '@storybook/react';
import { Playground } from '@nymproject/react/playground/Playground';
export default {
title: 'Playground',
component: Playground,
} as ComponentMeta<typeof Playground>;
export const AllControls = () => <Playground />;
+2 -2
View File
@@ -12,8 +12,8 @@
"build:packages": "run-s build:packages:theme build:packages:react",
"build:packages:theme": "pnpm run --filter @nymproject/mui-theme build",
"build:packages:react": "pnpm run --filter @nymproject/react build",
"build:react-example": "pnpm run --filter --stream @nymproject/react-webpack-with-theme-example build ",
"build:playground": "pnpm run --filter --stream @nymproject/react storybook:build",
"build:react-example": "pnpm run --filter @nymproject/react-webpack-with-theme-example --stream build ",
"build:playground": "pnpm run --filter @nymproject/react --stream storybook:build",
"build:ci:storybook": "pnpm run build && pnpm run dev:on && run-p build:react-example build:playground && pnpm build:ci:storybook:collect-artifacts",
"build:ci:storybook:collect-artifacts": "mkdir -p ts-packages/dist && mv sdk/typescript/packages/react-components/storybook-static ts-packages/dist/storybook && mv sdk/typescript/examples/react/mui-theme/dist ts-packages/dist/example",
"prebuild:ci": "pnpm run dev:on",
+10035 -84
View File
File diff suppressed because it is too large Load Diff
+6 -3
View File
@@ -1,10 +1,13 @@
packages:
- clients/validator
- dist/wasm/**
- dist/node/**
- dist/ts/**
- sdk/typescript/packages/mui-theme
- explorer-nextjs
- sdk/typescript/packages/react-components
- sdk/typescript/packages/validator-client
- sdk/typescript/packages/mui-theme
- sdk/typescript/packages/**
- sdk/typescript/examples/**
- sdk/typescript/codegen/**
- ts-packages/**
- explorer-nextjs
- clients/validator
@@ -4,14 +4,14 @@
"version": "1.0.0",
"license": "Apache-2.0",
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@mui/material": "^5.0.1",
"@mui/styles": "^5.0.1",
"@mui/icons-material": "^5.5.0",
"@mui/lab": "^5.0.0-alpha.72",
"@nymproject/mui-theme": "^1.0.0",
"@nymproject/react": "^1.0.0"
"@mui/material": "^5.0.1",
"@mui/styles": "^5.0.1",
"@nymproject/mui-theme": "workspace:^1.0.0",
"@nymproject/react": "workspace:^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.15.0",
@@ -19,15 +19,16 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/webpack": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
"@nymproject/webpack": "workspace:^1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@svgr/webpack": "^6.1.1",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.26",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"babel-loader": "^8.3.0",
@@ -1,8 +1,7 @@
import * as React from 'react';
import { Box, Container, Grid, Typography } from '@mui/material';
import { NymLogo } from '@nymproject/react/logo/NymLogo';
import { Playground } from '@nymproject/react/playground/Playground';
import { useIsMounted } from '@nymproject/react/hooks/useIsMounted';
import { NymLogo } from '@nymproject/react';
import { useIsMounted } from '@nymproject/react';
import { NymThemeProvider } from '@nymproject/mui-theme';
import { useTheme } from '@mui/material/styles';
import { ThemeToggle } from './ThemeToggle';
@@ -65,8 +64,6 @@ export const Content: FCWithChildren = () => {
))}
</Grid>
</Box>
<h1>Component playground</h1>
<Playground />
</Container>
);
};
@@ -1,13 +0,0 @@
import React, { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { App } from '../App';
describe('App', () => {
beforeEach(() => {
render(<App />);
});
it('should render without exploding', () => {
const { container } = render(<App />);
expect(container.firstChild).toBeInTheDocument();
});
});
File diff suppressed because it is too large Load Diff
@@ -43,7 +43,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace: ^1.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-json": "^6.0.0",
@@ -34,7 +34,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace: ^1.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-json": "^6.0.0",
@@ -1,5 +1,3 @@
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin';
export const framework = {
name: '@storybook/react-vite',
options: {},
@@ -15,8 +13,13 @@ export const typescript = {
const config = {
framework: '@storybook/react-vite',
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions'],
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
docs: {},
typescript: {
reactDocgen: 'react-docgen-typescript',
},
};
export default config;
@@ -1,6 +1,6 @@
import React from 'react';
import { ComponentMeta } from '@storybook/react';
import { Tooltip } from '@lib/components/tooltip';
import { Tooltip } from '../../../lib/components/tooltip/Tooltip';
export default {
title: 'Basics/Tooltip',
@@ -24,7 +24,7 @@
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace: ^1.0.0",
"@storybook/addon-actions": "^6.5.8",
"@storybook/addon-essentials": "^6.5.8",
"@storybook/addon-interactions": "^6.5.8",
+1 -1
View File
@@ -40,7 +40,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.15.0",
"@nymproject/eslint-config-react-typescript": "^1.0.0",
"@nymproject/eslint-config-react-typescript": "workspace: ^1.0.0",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-inject": "^5.0.3",
"@rollup/plugin-json": "^6.0.0",