-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update filenames to consistent convention
- Loading branch information
Showing
13 changed files
with
82 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
```sh | ||
# Convert CSF 2 to CSF 3 | ||
npx storybook@latest migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
4 changes: 4 additions & 0 deletions
4
docs/snippets/common/storybook-migrate-csf-2-to-3.pnpm.js.mdx
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,4 @@ | ||
```sh | ||
# Convert CSF 2 to CSF 3 | ||
pnpm dlx storybook@latest migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
4 changes: 4 additions & 0 deletions
4
docs/snippets/common/storybook-migrate-csf-2-to-3.yarn.js.mdx
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,4 @@ | ||
```sh | ||
# Convert CSF 2 to CSF 3 | ||
yarn dlx storybook@latest migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
1 change: 1 addition & 0 deletions
1
...n/storybook-migration-mdx-stories.npm.mdx → ...n/storybook-migrate-mdx-to-csf.npm.js.mdx
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,3 +1,4 @@ | ||
```shell | ||
# Convert stories in MDX to CSF | ||
npx storybook@latest migrate mdx-to-csf --glob "src/**/*.stories.mdx” | ||
``` |
3 changes: 2 additions & 1 deletion
3
.../storybook-migration-mdx-stories.pnpm.mdx → .../storybook-migrate-mdx-to-csf.pnpm.js.mdx
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,3 +1,4 @@ | ||
```shell | ||
```sh | ||
# Convert stories in MDX to CSF | ||
pnpm dlx storybook@latest migrate mdx-to-csf --glob "src/**/*.stories.mdx” | ||
``` |
3 changes: 2 additions & 1 deletion
3
.../storybook-migration-mdx-stories.yarn.mdx → .../storybook-migrate-mdx-to-csf.yarn.js.mdx
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,3 +1,4 @@ | ||
```shell | ||
```sh | ||
# Convert stories in MDX to CSF | ||
yarn dlx storybook@latest migrate mdx-to-csf --glob "src/**/*.stories.mdx” | ||
``` |
4 changes: 4 additions & 0 deletions
4
docs/snippets/common/storybook-migrate-stories-of-to-csf.npm.js.mdx
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,4 @@ | ||
```sh | ||
# Convert storiesOf to CSF 1 | ||
npx storybook@latest migrate storiesof-to-csf --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
4 changes: 4 additions & 0 deletions
4
docs/snippets/common/storybook-migrate-stories-of-to-csf.pnpm.js.mdx
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,4 @@ | ||
```sh | ||
# Convert storiesOf to CSF 1 | ||
pnpm dlx storybook@latest migrate storiesof-to-csf --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
4 changes: 4 additions & 0 deletions
4
docs/snippets/common/storybook-migrate-stories-of-to-csf.yarn.js.mdx
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,4 @@ | ||
```sh | ||
# Convert storiesOf to CSF 1 | ||
yarn dlx storybook@latest migrate storiesof-to-csf --glob="**/*.stories.tsx" --parser=tsx | ||
``` |
3 changes: 3 additions & 0 deletions
3
docs/snippets/common/storybook-upgrade-to-prior-major.npm.js.mdx
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,3 @@ | ||
```shell | ||
npx storybook@^7 upgrade | ||
``` |
3 changes: 3 additions & 0 deletions
3
docs/snippets/common/storybook-upgrade-to-prior-major.pnpm.js.mdx
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,3 @@ | ||
```shell | ||
pnpm dlx storybook@^7 upgrade | ||
``` |
3 changes: 3 additions & 0 deletions
3
docs/snippets/common/storybook-upgrade-to-prior-major.yarn.js.mdx
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,3 @@ | ||
```shell | ||
yarn dlx storybook@^7 upgrade | ||
``` |