Skip to content

Commit

Permalink
docs: switch to Stackblitz export (#30613)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored Feb 29, 2024
1 parent f357c80 commit c790b9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ export const parameters = {
},
},
exportToSandbox: {
provider: 'codesandbox-browser',
bundler: 'cra',
provider: 'stackblitz-cloud',
bundler: 'vite',
requiredDependencies: {
// for React
react: '^17',
'react-dom': '^17',
react: '^18',
'react-dom': '^18',
// necessary for FluentProvider:
'@fluentui/react-components': '^9.0.0',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,15 @@ describe(`sabdbox-scaffold`, () => {
\\"scripts\\": {
\\"dev\\": \\"vite\\",
\\"build\\": \\"tsc && vite build\\",
\\"lint\\": \\"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0\\",
\\"preview\\": \\"vite preview\\"
},
\\"dependencies\\": {},
\\"devDependencies\\": {
\\"@types/react\\": \\"^17\\",
\\"@types/react-dom\\": \\"^17\\",
\\"typescript\\": \\"~4.7.0\\",
\\"@vitejs/plugin-react\\": \\"^4.1.0\\",
\\"vite\\": \\"^4.0.0\\"
\\"@vitejs/plugin-react\\": \\"^4.2.0\\",
\\"vite\\": \\"^5.0.0\\"
}
}",
"src/App.tsx": "import { FluentProvider, webLightTheme } from '@fluentui/react-components';
Expand Down Expand Up @@ -490,16 +489,15 @@ describe(`sabdbox-scaffold`, () => {
\\"scripts\\": {
\\"dev\\": \\"vite\\",
\\"build\\": \\"tsc && vite build\\",
\\"lint\\": \\"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0\\",
\\"preview\\": \\"vite preview\\"
},
\\"dependencies\\": {},
\\"devDependencies\\": {
\\"@types/react\\": \\"^17\\",
\\"@types/react-dom\\": \\"^17\\",
\\"typescript\\": \\"~4.7.0\\",
\\"@vitejs/plugin-react\\": \\"^4.1.0\\",
\\"vite\\": \\"^4.0.0\\"
\\"@vitejs/plugin-react\\": \\"^4.2.0\\",
\\"vite\\": \\"^5.0.0\\"
}
}",
"src/App.tsx": "import { FluentProvider, webLightTheme } from '@fluentui/react-components';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,15 @@ const Vite = {
scripts: {
dev: 'vite',
build: 'tsc && vite build',
lint: 'eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0',
preview: 'vite preview',
},
dependencies: {
...data.dependencies,
},
devDependencies: {
...commonDevDeps,
'@vitejs/plugin-react': '^4.1.0',
vite: '^4.0.0',
'@vitejs/plugin-react': '^4.2.0',
vite: '^5.0.0',
},
});
},
Expand Down

0 comments on commit c790b9b

Please sign in to comment.