-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-3307: Update storybook to use v8 and Vite builder (#55)
* INT-3307: Update to storybook v8 * INT-3307: Add controls to storybooks * INT-3307: Use gh-pages to deploy storybook * INT-3307: Clean up unused storybook addons * INT-3307: Renamed storybook config files to typescript * INT-3307: Recreated package lock * INT-3307: use `export const meta` instead of `Meta` storybook component * INT-3307: Moved meta object export to a module context script
- Loading branch information
1 parent
3ee3880
commit 016ef7b
Showing
7 changed files
with
4,115 additions
and
7,399 deletions.
There are no files selected for viewing
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,18 @@ | ||
import type { StorybookConfig } from '@storybook/svelte-vite'; | ||
|
||
const config: StorybookConfig = { | ||
core: { | ||
disableTelemetry: true, | ||
}, | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx|svelte)'], | ||
framework: { | ||
name: '@storybook/svelte-vite', | ||
options: {}, | ||
}, | ||
addons: ['@storybook/addon-essentials', '@storybook/addon-svelte-csf'], | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
}; | ||
|
||
export default config; |
File renamed without changes.
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 |
---|---|---|
|
@@ -26,9 +26,9 @@ | |
"validate": "svelte-check", | ||
"lint": "eslint src/main/**/*.{ts,svelte}", | ||
"test": "echo 'No tests hooked up yet'", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook", | ||
"deploy-storybook": "yarn storybook-to-ghpages --source-branch=main", | ||
"storybook": "storybook dev -p 6006", | ||
"build-storybook": "storybook build", | ||
"deploy-storybook": "storybook build && gh-pages -d ./storybook-static -u 'tiny-bot <[email protected]>' --nojekyll", | ||
"prepublishOnly": "yarn run build" | ||
}, | ||
"keywords": [ | ||
|
@@ -50,21 +50,11 @@ | |
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
"@rollup/plugin-typescript": "^8.2.5", | ||
"@storybook/addon-actions": "^6.3.7", | ||
"@storybook/addon-essentials": "^6.3.7", | ||
"@storybook/addon-links": "^6.3.7", | ||
"@storybook/addon-svelte-csf": "^1.1.0", | ||
"@storybook/addons": "^6.2.9", | ||
"@storybook/api": "^6.2.9", | ||
"@storybook/builder-webpack5": "^6.5.16", | ||
"@storybook/client-api": "^6.2.9", | ||
"@storybook/client-logger": "^6.2.9", | ||
"@storybook/components": "^6.2.9", | ||
"@storybook/core-events": "^6.2.9", | ||
"@storybook/manager-webpack5": "^6.5.16", | ||
"@storybook/storybook-deployer": "^2.8.10", | ||
"@storybook/svelte": "^6.3.7", | ||
"@storybook/theming": "^6.2.9", | ||
"@storybook/addon-essentials": "^8.1.3", | ||
"@storybook/addon-svelte-csf": "^4.1.3", | ||
"@storybook/svelte": "^8.1.3", | ||
"@storybook/svelte-vite": "^8.1.3", | ||
"@sveltejs/vite-plugin-svelte": "^3.1.1", | ||
"@tinymce/beehive-flow": "^0.19.0", | ||
"@tinymce/eslint-plugin": "^1.9.2", | ||
"@tsconfig/svelte": "^5.0.4", | ||
|
@@ -73,20 +63,23 @@ | |
"babel-loader": "^8.2.2", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-svelte": "^2.34.0", | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0", | ||
"gh-pages": "^6.1.1", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"rollup": "^2.56.2", | ||
"rollup-plugin-css-only": "^3.1.0", | ||
"rollup-plugin-livereload": "^2.0.0", | ||
"rollup-plugin-svelte": "^7.1.5", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"storybook": "^8.1.6", | ||
"svelte": "^4.2.17", | ||
"svelte-check": "^3.8.0", | ||
"svelte-loader": "^3.2.0", | ||
"svelte-preprocess": "^5.1.4", | ||
"tinymce": "^7.1.1", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.13", | ||
"webpack": "^5.76.2" | ||
}, | ||
"resolutions": { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { defineConfig } from 'vite'; | ||
import { svelte } from '@sveltejs/vite-plugin-svelte'; | ||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; | ||
|
||
// As of right now, this is just used for building the storybook. | ||
export default defineConfig({ | ||
plugins: [svelte({ | ||
preprocess: [vitePreprocess()] | ||
})] | ||
}); |
Oops, something went wrong.