Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: add stats bench script #20953

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
57737ad
add stats generation script
ndelangen Feb 2, 2023
3f6efb5
fix tests, seems treeshaking cjs is breaking tests
ndelangen Feb 3, 2023
a40709a
fix sorting of exports
ndelangen Feb 3, 2023
9d7cb64
regen lockfile
ndelangen Feb 3, 2023
bba1d75
fix lockfile
ndelangen Feb 3, 2023
f9a4d4c
update stats file
ndelangen Feb 3, 2023
883f466
experiment
ndelangen Feb 3, 2023
2dc4815
fix lockfile
ndelangen Feb 3, 2023
a76afc0
rgen stats
ndelangen Feb 3, 2023
86117a6
Merge branch 'next' into norbert/stats-analysis-baseline
ndelangen Feb 3, 2023
e573fbe
fix linting
ndelangen Feb 3, 2023
cb27399
Merge branch 'next' into norbert/stats-analysis-baseline
ndelangen Feb 3, 2023
2ad6485
Merge branch 'next' into norbert/stats-analysis-baseline
ndelangen Feb 4, 2023
3f6494d
Merge branch 'next' into norbert/stats-analysis-baseline
ndelangen Feb 5, 2023
1faec9e
make cjs not load module
ndelangen Feb 6, 2023
1900834
no env define for node code
ndelangen Feb 6, 2023
640e3a9
make it more type-correct
ndelangen Feb 6, 2023
2563ebd
add stats bench script
ndelangen Feb 6, 2023
1ec9ec4
Merge branch 'norbert/bench-dist-stats' into norbert/stats-analysis-b…
ndelangen Feb 6, 2023
f015dc4
Merge branch 'next' into norbert/bench-dist-stats
ndelangen Feb 15, 2023
47e8292
update stats-file
ndelangen Feb 15, 2023
c7bdbf1
Merge branch 'norbert/stats-analysis-baseline' into norbert/bench-dis…
ndelangen Feb 15, 2023
0198ab0
Merge branch 'next' into norbert/bench-dist-stats
ndelangen Feb 16, 2023
b459178
Merge branch 'next' into norbert/bench-dist-stats
ndelangen Feb 27, 2023
3af80d6
lockfile
ndelangen Feb 28, 2023
e945382
Merge branch 'next' into norbert/bench-dist-stats
ndelangen Feb 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@
"./src/outline/manager.ts",
"./src/toolbars/manager.ts",
"./src/viewport/manager.ts"
],
"platform": "node"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
6 changes: 3 additions & 3 deletions code/addons/gfm/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## @storybook/addon-mdx-gfm

The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Storybook 7.0, providing Github Flavored Markdown support to Storybook docs.
The "@storybook/addon-mdx-gfm" addon is meant as a migration assistant for Storybook 7.0, providing Github Flavored Markdown support to Storybook docs.

> Note:
> Note:
> This addon will likely be removed in a future version.

It's recommended you read this document and follow its instructions instead:
https://storybook.js.org/docs/7.0/react/writing-docs/mdx#lack-of-github-flavored-markdown-gfm

Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
Once you've made the necessary changes, you can remove the addon from your package.json and storybook config.
3 changes: 1 addition & 2 deletions code/addons/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@
"./src/manager.tsx",
"./src/preview.ts",
"./src/preset/checkActionsLoaded.ts"
],
"platform": "node"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243",
"storybook": {
Expand Down
9 changes: 5 additions & 4 deletions code/frameworks/html-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -74,7 +72,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/html-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -74,7 +72,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
13 changes: 7 additions & 6 deletions code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,26 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./preview.js": {
"node": "./dist/preview.js",
"require": "./dist/preview.js",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
},
"./next-image-loader-stub.js": {
"node": "./dist/next-image-loader-stub.js",
"require": "./dist/next-image-loader-stub.js",
"import": "./dist/next-image-loader-stub.mjs",
"types": "./dist/next-image-loader-stub.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -142,7 +140,10 @@
"./src/next-image-loader-stub.ts",
"./src/font/webpack/loader/storybook-nextjs-font-loader.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
10 changes: 6 additions & 4 deletions code/frameworks/preact-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@
"license": "MIT",
"exports": {
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -71,7 +70,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/preact-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -75,7 +73,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/react-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -81,7 +79,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
6 changes: 4 additions & 2 deletions code/frameworks/server-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -72,7 +71,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/svelte-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -78,7 +76,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/svelte-webpack5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -76,7 +74,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
4 changes: 2 additions & 2 deletions code/frameworks/sveltekit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ However SvelteKit has some [Kit-specific modules](https://kit.svelte.dev/docs/mo
| **Module** | **Status** | **Note** |
| ---------------------------------------------------------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| [`$app/environment`](https://kit.svelte.dev/docs/modules#$app-environment) | ✅ Supported | `version` is always empty in Storybook. |
| [`$app/forms`](https://kit.svelte.dev/docs/modules#$app-forms) | ⏳ Planned for 7.1 | Will use mocks. Tracked in [#20999](https://github.com/storybookjs/storybook/issues/20999) |
| [`$app/navigation`](https://kit.svelte.dev/docs/modules#$app-navigation) | ⏳ Planned for 7.1 | Will use mocks. Tracked in [#20999](https://github.com/storybookjs/storybook/issues/20999) |
| [`$app/forms`](https://kit.svelte.dev/docs/modules#$app-forms) | ⏳ Planned for 7.1 | Will use mocks so the Actions addon will display when the hooks are being called. |
| [`$app/navigation`](https://kit.svelte.dev/docs/modules#$app-navigation) | ⏳ Planned for 7.1 | Will use mocks so the Actions addon will display when the hooks are being called. |
| [`$app/paths`](https://kit.svelte.dev/docs/modules#$app-paths) | ✅ Supported | Requires SvelteKit 1.4.0 or newer |
| [`$app/stores`](https://kit.svelte.dev/docs/modules#$app-stores) | ✅ Supported | Mocks planned for 7.1, so you can set different store values per story. |
| [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private) | ⛔ Not supported | They are meant to only be available server-side, and Storybook renders all components on the client. |
Expand Down
6 changes: 4 additions & 2 deletions code/frameworks/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -74,7 +73,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
9 changes: 5 additions & 4 deletions code/frameworks/vue-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
".": {
"node": "./dist/index.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./preset": {
"node": "./dist/preset.js",
"require": "./dist/preset.js",
"import": "./dist/preset.mjs",
"types": "./dist/preset.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
Expand Down Expand Up @@ -77,7 +75,10 @@
"./src/index.ts",
"./src/preset.ts"
],
"platform": "node"
"platform": "node",
"formats": [
"cjs"
]
},
"gitHead": "fcabbb3d1837b193348cbdb7935d497049cd5243"
}
Loading