-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove storybook CLI commands and dependencies, provide minimal confi…
…g for storybook
- Loading branch information
Showing
97 changed files
with
1,075 additions
and
1,382 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
'sku': major | ||
--- | ||
|
||
Remove `storybook` CLI commands | ||
|
||
**BREAKING CHANGE** | ||
|
||
`sku` no longer provides the `sku storybook` and `sku build-storybook` CLI commands. Please migrate to [the official Storybook CLI][storybook cli]: | ||
|
||
**MIGRATION GUIDE**: | ||
|
||
```sh | ||
pnpm install -D storybook | ||
``` | ||
|
||
```diff | ||
// package.json | ||
{ | ||
"scripts": { | ||
- "storybook": "sku storybook", | ||
+ "storybook": "storybook dev", | ||
- "build:storybook": "sku build-storybook" | ||
+ "storybook-build": "storybook build" | ||
} | ||
} | ||
``` | ||
|
||
[storybook cli]: https://storybook.js.org/docs/cli/ |
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,36 @@ | ||
--- | ||
'sku': major | ||
--- | ||
|
||
Remove automatic configuration of Storybook | ||
|
||
**BREAKING CHANGE** | ||
|
||
Sku no longer configures your `.storybook/main.ts` file for you. If you are using Storybook, you will need to configure it yourself. See the [Storybook docs] for more information. | ||
|
||
**MIGRATION GUIDE**: | ||
|
||
Minimal Storybook configuration: | ||
|
||
```ts | ||
// .storybook/main.ts | ||
import { babel, webpackFinal } from 'sku/config/storybook'; | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
|
||
export default { | ||
stories: ['../src/**/*.stories.tsx'], | ||
framework: '@storybook/react-webpack5', | ||
core: { | ||
builder: { | ||
name: '@storybook/builder-webpack5', | ||
options: { | ||
fsCache: true, // For faster startup times after the first `storybook dev` | ||
}, | ||
}, | ||
}, | ||
babel, | ||
webpackFinal, | ||
} satisfies StorybookConfig; | ||
``` | ||
|
||
[storybook docs]: https://seek-oss.github.io/sku/#/./docs/storybook |
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,24 @@ | ||
--- | ||
'sku': major | ||
--- | ||
|
||
Remove Storybook dependencies and `@storybook/react` entrypoint | ||
|
||
**BREAKING CHANGE** | ||
|
||
Sku no longer installs Storybook dependencies. Additionally, it no longer provides the `sku/@storybook/react` entrypoint. If you are using Storybook, you will need to install the dependencies yourself. See the [Storybook docs] for more information. | ||
|
||
**MIGRATION GUIDE**: | ||
|
||
```sh | ||
pnpm install -D storybook @storybook/react @storybook/react-webpack5 | ||
``` | ||
|
||
```diff | ||
// MyComponent.stories.tsx | ||
|
||
-import type { Meta } from 'sku/@storybook/react'; | ||
+import type { Meta } from '@storybook/react'; | ||
``` | ||
|
||
[storybook docs]: https://seek-oss.github.io/sku/#/./docs/storybook |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ dist/ | |
dist-build/ | ||
dist-ssr/ | ||
dist-start/ | ||
storybook-static/ | ||
yarn.lock |
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 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
Oops, something went wrong.