Skip to content

Commit

Permalink
Merge pull request #25357 from storybookjs/version-non-patch-from-8.0…
Browse files Browse the repository at this point in the history
….0-alpha.5

Release: Prerelease 8.0.0-alpha.6
  • Loading branch information
shilman authored Dec 30, 2023
2 parents d4cfbbc + 8241b71 commit 0812561
Show file tree
Hide file tree
Showing 23 changed files with 506 additions and 71 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 8.0.0-alpha.6

- NextJS: Autoconfigure public directory for new projects - [#25279](https://github.com/storybookjs/storybook/pull/25279), thanks [@shilman](https://github.com/shilman)!
- Vite: Fix pre-transform error in Vite 5 - [#25329](https://github.com/storybookjs/storybook/pull/25329), thanks [@yannbf](https://github.com/yannbf)!
- Vue3: Fix pnp by making compiler-core a dependency - [#25311](https://github.com/storybookjs/storybook/pull/25311), thanks [@shilman](https://github.com/shilman)!

## 8.0.0-alpha.5

- Core: Remove the `-s` flag from build & dev - [#25266](https://github.com/storybookjs/storybook/pull/25266), thanks [@ndelangen](https://github.com/ndelangen)!
Expand Down
2 changes: 1 addition & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ To summarize:

#### typescript.skipBabel deprecated

We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescirpt.skipCompiler` instead.
We will remove the `typescript.skipBabel` option in Storybook 8.0.0. Please use `typescript.skipCompiler` instead.

#### Primary doc block accepts of prop

Expand Down
4 changes: 4 additions & 0 deletions code/addons/a11y/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export const inaccessible = () => (
);
```

## Automate accessibility tests with test runner

The test runner does not apply any rules that you have set on your stories by default. You can configure the runner to correctly apply the rules by [following the guide on the Storybook docs](https://storybook.js.org/docs/writing-tests/accessibility-testing#automate-accessibility-tests-with-test-runner).

## Roadmap

- Make UI accessible
Expand Down
2 changes: 2 additions & 0 deletions code/builders/builder-vite/src/vite-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export async function createViteServer(options: Options, devServer: Server) {

const config = {
...commonCfg,
// Needed in Vite 5: https://github.com/storybookjs/storybook/issues/25256
assetsInclude: ['/sb-preview/**'],
// Set up dev server
server: {
middlewareMode: true,
Expand Down
6 changes: 6 additions & 0 deletions code/lib/cli/src/generators/NEXTJS/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { join } from 'path';
import { existsSync } from 'fs';
import { CoreBuilder } from '../../project_types';
import { baseGenerator } from '../baseGenerator';
import type { Generator } from '../types';

const generator: Generator = async (packageManager, npmOptions, options) => {
let staticDir;
if (existsSync(join(process.cwd(), 'public'))) staticDir = 'public';

await baseGenerator(
packageManager,
npmOptions,
{ ...options, builder: CoreBuilder.Webpack5 },
'react',
{
staticDir,
extraAddons: ['@storybook/addon-onboarding'],
},
'nextjs'
Expand Down
Loading

0 comments on commit 0812561

Please sign in to comment.