Merge pull request #12209 from storybookjs/tech/benchmark

Build: Add CRA benchmark
This commit is contained in:
Michael Shilman 2020-08-31 19:35:25 +08:00 committed by GitHub
commit 09b75a3ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -197,3 +197,14 @@ export const react_in_yarn_workspace: Parameters = {
`yarn add react react-dom --silent -W`,
].join(' && '),
};
// View results at: https://datastudio.google.com/reporting/c34f64ee-400f-4d06-ad4f-5c2133e226da
export const cra_bench: Parameters = {
name: 'cra_bench',
version: 'latest',
generator: [
'npx create-react-app@{{version}} {{name}}-{{version}}',
'cd {{name}}-{{version}}',
"npx @storybook/bench 'npx sb init' --label cra",
].join(' && '),
};

View File

@ -43,6 +43,14 @@ packages:
access: $all
publish: $all
proxy: npmjs
'@storybook/bench':
access: $all
publish: $all
proxy: npmjs
'@storybook/addon-bench':
access: $all
publish: $all
proxy: npmjs
# storybook packages are NOT proxied to global registry
# allowing us to republish any version during tests