Skip to content

Commit fda17e9

Browse files
UberMouseTayloriclanton
authored
[heft] update storybook plugin to be compatible with v9 (#5492)
* [heft] update storybook to be compatible with v9 Also adds support for serve mode detection when using the heft-rspack-plugin * code review changes * fix ci issues * Normalize versions. * Rush update. * Create separate v6 and v9 storybook test projects. * Rush update. * fixup! fix ci issues * fixup! Create separate v6 and v9 storybook test projects. * Rush change. * fixup! Create separate v6 and v9 storybook test projects. * fixup! Rush update. * Bump html-webpack-plugin to the version that works with Webpack 5. * Clean up the resoluion of the @storybook/react-webpack5 package. * Don't run Storybook v9 under Node 18. * fixup! Rush update. --------- Co-authored-by: Taylor <ubermous@users.noreply.github.com> Co-authored-by: Taylor Lodge <ubermouse@users.noreply.github.com> Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 6ccb586 commit fda17e9

76 files changed

Lines changed: 2518 additions & 710 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15+
# When Node 18 is removed, remove the special cases in
16+
# - build-tests-samples/heft-storybook-v9-react-tutorial/build.js
17+
# - build-tests-samples/heft-storybook-v9-react-tutorial-app/build.js
1518
- NodeVersion: 18.20.x
1619
NodeVersionDisplayName: 18
1720
OS: ubuntu-latest

README.md

Lines changed: 6 additions & 3 deletions

build-tests-samples/heft-storybook-react-tutorial-app/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

build-tests-samples/heft-storybook-react-tutorial-storykit/dist/index.cjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

build-tests-samples/heft-storybook-react-tutorial-storykit/dist/index.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

build-tests-samples/heft-storybook-react-tutorial-storykit/dist/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 4 additions & 0 deletions

build-tests-samples/heft-storybook-react-tutorial-app/config/heft.json renamed to build-tests-samples/heft-storybook-v6-react-tutorial-app/config/heft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"taskPlugin": {
1212
"pluginPackage": "@rushstack/heft-storybook-plugin",
1313
"options": {
14-
"storykitPackageName": "heft-storybook-react-tutorial-storykit",
14+
"storykitPackageName": "heft-storybook-v6-react-tutorial-storykit",
1515
"cliPackageName": "@storybook/react",
1616
"cliCallingConvention": "storybook6",
1717
"staticBuildOutputFolder": "dist",
18-
"cwdPackageName": "heft-storybook-react-tutorial"
18+
"cwdPackageName": "heft-storybook-v6-react-tutorial"
1919
}
2020
}
2121
}

build-tests-samples/heft-storybook-react-tutorial-app/config/rush-project.json renamed to build-tests-samples/heft-storybook-v6-react-tutorial-app/config/rush-project.json

File renamed without changes.

build-tests-samples/heft-storybook-react-tutorial-app/package.json renamed to build-tests-samples/heft-storybook-v6-react-tutorial-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "heft-storybook-react-tutorial-app",
2+
"name": "heft-storybook-v6-react-tutorial-app",
33
"description": "Building this project is a regression test for heft-storybook-plugin",
44
"version": "1.0.0",
55
"private": true,
@@ -9,11 +9,11 @@
99
"_phase:test": ""
1010
},
1111
"dependencies": {
12-
"heft-storybook-react-tutorial": "workspace: *"
12+
"heft-storybook-v6-react-tutorial": "workspace: *"
1313
},
1414
"devDependencies": {
1515
"@rushstack/heft-storybook-plugin": "workspace:*",
1616
"@rushstack/heft": "workspace:*",
17-
"heft-storybook-react-tutorial-storykit": "workspace:*"
17+
"heft-storybook-v6-react-tutorial-storykit": "workspace:*"
1818
}
1919
}

0 commit comments

Comments
 (0)