-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4472 from bartvandenende-wm/bartvandenende-wm/sto…
…rybook-improvements [heft-storybook-plugin] Add support for storybook 7, HMR and provide new plugin configuration options
- Loading branch information
Showing
16 changed files
with
3,387 additions
and
3,212 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
4 changes: 4 additions & 0 deletions
4
build-tests-samples/heft-storybook-react-tutorial-app/README.md
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 @@ | ||
# heft-storybook-react-tutorial-app | ||
|
||
This is project builds the storybook exports from the | ||
[heft-storybook-react-tutorial](https://github.com/microsoft/rushstack-samples/tree/main/heft/heft-storybook-react-tutorial) and is a regression test for the heft-storybook-plugin `cwdPackageName` option. |
25 changes: 25 additions & 0 deletions
25
build-tests-samples/heft-storybook-react-tutorial-app/config/heft.json
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,25 @@ | ||
/** | ||
* Defines configuration used by core Heft. | ||
*/ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", | ||
|
||
"phasesByName": { | ||
"build": { | ||
"tasksByName": { | ||
"storybook": { | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-storybook-plugin", | ||
"options": { | ||
"storykitPackageName": "heft-storybook-react-tutorial-storykit", | ||
"cliPackageName": "@storybook/react", | ||
"cliCallingConvention": "storybook6", | ||
"staticBuildOutputFolder": "dist", | ||
"cwdPackageName": "heft-storybook-react-tutorial" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
build-tests-samples/heft-storybook-react-tutorial-app/package.json
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,19 @@ | ||
{ | ||
"name": "heft-storybook-react-tutorial-app", | ||
"description": "Building this project is a regression test for heft-storybook-plugin", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "heft build --clean --storybook", | ||
"_phase:build": "heft run --only build -- --clean", | ||
"_phase:test": "" | ||
}, | ||
"dependencies": { | ||
"heft-storybook-react-tutorial": "workspace: *" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/heft-storybook-plugin": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"heft-storybook-react-tutorial-storykit": "workspace:*" | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...tack/heft-storybook-plugin/bartvandenende-wm-storybook-improvements_2024-01-03-11-53.json
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 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/heft-storybook-plugin", | ||
"comment": "Add support for storybook 7, HMR, and breaking chages in the plugin configuration option. The \"startupModulePath\" and \"staticBuildModulePath\" have been removed in favour of \"cliCallingConvention\" and \"cliPackageName\". A new 'cwdPackageName' option provides the ability to set an alternative dependency name as (cwd) target for the storybook commands." , | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@rushstack/heft-storybook-plugin" | ||
} |
10 changes: 10 additions & 0 deletions
10
...ushstack/node-core-library/bartvandenende-wm-storybook-improvements_2024-01-22-13-23.json
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 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Improve 'bin' definition in `IPackageJson` type", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
Oops, something went wrong.