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 CRA benchmark #12209

Merged
merged 5 commits into from Aug 31, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/run-e2e-config.ts
Expand Up @@ -197,3 +197,13 @@ export const react_in_yarn_workspace: Parameters = {
`yarn add react react-dom --silent -W`,
].join(' && '),
};

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' --upload cra",
].join(' && '),
};
8 changes: 8 additions & 0 deletions scripts/verdaccio.yaml
Expand Up @@ -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
Expand Down