-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: uses Vite for all development server and production builds Co-authored-by: Banks Nussman <banks@nussman.us>
- Loading branch information
1 parent
a2953c9
commit b193687
Showing
69 changed files
with
2,344 additions
and
6,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
import { mergeConfig } from 'vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
'../src/components/**/*.@(mdx|stories.@(js|ts|jsx|tsx))', | ||
'../src/features/**/*.@(mdx|stories.@(js|ts|jsx|tsx))', | ||
], | ||
addons: [ | ||
'@storybook/addon-docs', | ||
'@storybook/addon-controls', | ||
'@storybook/addon-viewport', | ||
'storybook-dark-mode-v7', | ||
], | ||
staticDirs: ['../public'], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
features: { storyStoreV7: true }, | ||
async viteFinal(config) { | ||
return mergeConfig(config, { | ||
resolve: { | ||
preserveSymlinks: true, | ||
}, | ||
define: { | ||
'process.env': {}, | ||
}, | ||
}); | ||
}, | ||
}; | ||
|
||
export default config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { create } from '@storybook/theming'; | ||
import { addons } from '@storybook/addons'; | ||
import Logo from '../src/assets/logo/akamai-logo.svg'; | ||
|
||
const theme = create({ | ||
base: 'light', | ||
brandTitle: 'Akamai', | ||
brandUrl: 'https://www.linode.com', | ||
brandImage: Logo, | ||
}); | ||
|
||
addons.setConfig({ | ||
theme, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<style> | ||
.sbdocs-wrapper { | ||
padding-top: 2rem !important; | ||
} | ||
</style> | ||
<script> | ||
window.global = window; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.