Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@carbon/charts-react Storybook builds use vite instead of webpack, fixed minor Storybook CSS issue causing warnings in console, bumped dependencies, docs cleanup #1691

Merged
merged 30 commits into from
Dec 18, 2023

Conversation

nstuyvesant
Copy link
Contributor

@nstuyvesant nstuyvesant commented Nov 29, 2023

Updates

  • Migrate Storybook builds for @carbon/charts-react from Webpack to Vite (turned off autodocs and codegen)
  • Bump node, lerna, storybook, vite, @vitejs/plugin-react, svelte, sveltekit, typescript, eslint, @typescript/*, @rushstack/eslint-patch, prettier, @carbon icons, @carbon/styles, @carbon/themes, jsdom, vite-plugin-dts, @vitejs/plugin-react, vitest and a few @types.
  • Add nx cache to gitignore
  • Drop @babel*, @storybook/testing-library, @storybook/react (only needs @storybook/react-vite), css-loader, style-loader, webpack (latter three are still there as sub-dependencies for Angular and @storybook/angular but don't need to be explicitly loaded)
  • Add @storybook/test (replaces @storybook/testing-library)
  • Add @nrwl/devkit to prevent yarn install errors (peer of lerna)
  • Hoisted eslint and related config and plugins, vue (to address storybook issue)
  • Updated README.md files to recommend loading styles from dist/styles.css (in case webpack is used since it doesn't read package.json exports)
  • Removed unused imports from react storybooks
  • Fixed issue with demo.scss where $css--font-face variable was being ignored causing console errors about not being able to load Plex from node_modules (it's loaded in Storybooks in the <head>)
  • Applied previous fix for Svelte Storybook to MDX in core which is copied to the Svelte package during builds (was overwriting)
  • Fixed README.md files to advise users to import CSS from /dist/styles.css in case they are using Webpack.
  • Applied Vite mergeConfig to Storybook viteFinal functions as this is the recommended way to modify Vite configuration for Storybook and provides better typing.
  • Disabled Storybook telemetry

@nstuyvesant nstuyvesant requested review from theiliad and a team as code owners November 29, 2023 00:40
Copy link

netlify bot commented Nov 29, 2023

Deploy Preview for carbon-charts-react ready!

Name Link
🔨 Latest commit b44cad8
🔍 Latest deploy log https://app.netlify.com/sites/carbon-charts-react/deploys/65807349795332000825b392
😎 Deploy Preview https://deploy-preview-1691--carbon-charts-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 29, 2023

Deploy Preview for carbon-charts-angular ready!

Name Link
🔨 Latest commit b44cad8
🔍 Latest deploy log https://app.netlify.com/sites/carbon-charts-angular/deploys/6580734968dd660008b6432d
😎 Deploy Preview https://deploy-preview-1691--carbon-charts-angular.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 29, 2023

Deploy Preview for carbon-charts-core ready!

Name Link
🔨 Latest commit b44cad8
🔍 Latest deploy log https://app.netlify.com/sites/carbon-charts-core/deploys/658073497281150008845a11
😎 Deploy Preview https://deploy-preview-1691--carbon-charts-core.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nstuyvesant nstuyvesant changed the title Bump for dependencies DO NOT MERGE - Bump for dependencies (working on Storybook issues unsurprisingly) Nov 29, 2023
@nstuyvesant nstuyvesant changed the title DO NOT MERGE - Bump for dependencies (working on Storybook issues unsurprisingly) DO NOT MERGE - Bump for dependencies (working on Storybook issues with charts-react unsurprisingly) Nov 29, 2023
…tier, @carbon/styles. @carbon/themes, @types/react, publint, @vitejs/plugin-vue
…ng, @storybook/react (using react-vite), bump sveltekit, storybook, @carbon/icons, @typescript*, @carbon/styles, eslint, vite, typescript, vitest, prettier-eslint, hoist eslint (and plugins)
@nstuyvesant nstuyvesant changed the title DO NOT MERGE - Bump for dependencies (working on Storybook issues with charts-react unsurprisingly) @carbon/charts-react Storybook builds to use vite, minor Storybook CSS issue causing warnings in console, bumped dependencies, docs cleanup Dec 18, 2023
@nstuyvesant nstuyvesant changed the title @carbon/charts-react Storybook builds to use vite, minor Storybook CSS issue causing warnings in console, bumped dependencies, docs cleanup @carbon/charts-react Storybook builds use vite instead of webpack, fixed minor Storybook CSS issue causing warnings in console, bumped dependencies, docs cleanup Dec 18, 2023
@theiliad theiliad merged commit 766dcac into carbon-design-system:master Dec 18, 2023
4 checks passed
@nstuyvesant nstuyvesant deleted the bump branch December 18, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants