Valentin Palkovic
7453a70426
Add proper Next.js framework support
...
NextJS projects should work out-of-the-box when Storybook is initialized.
1. Scenario: .babelrc or project babel.config.(m)js(x) file doesn't exist
In this case Next.js >= 12 uses swc to transpile the code. In Storybook
we will still use babel to transpile the code. We use the preset `next/babel`
and configure it to make the Next.js project work with Storybook. Any SWC/Next compiler
related options are ignored
2. Scenario: .babelrc or project babel.config.(m)js(x) file exist
Storybook will use the project's babel configuration for transpiling. All options, which
are passed to the `next/babel` prest are respected.
2022-11-17 08:58:42 +01:00
Michael Shilman
b5920aaef1
Update git head to 7.0.0-alpha.50, update yarn.lock [ci skip]
2022-11-17 15:10:36 +08:00
Michael Shilman
77184d0390
v7.0.0-alpha.50
2022-11-17 15:06:07 +08:00
Ian VanSchooten
c1a49c4c6c
Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
2022-11-16 14:20:48 -05:00
Ian VanSchooten
44129a439d
Fix next-image-loader-stub
2022-11-16 10:24:41 -05:00
Ian VanSchooten
25f7141c50
name jest projects using file path
2022-11-14 15:06:11 -05:00
Ian VanSchooten
e1d0790c9f
Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
...
# Conflicts:
# code/lib/preview-web/src/PreviewWeb.test.ts
# code/yarn.lock
2022-11-14 13:20:31 -05:00
Norbert de Langen
3fd2261293
all sorts of ts fixes or ignores after enabling ts to function on tests and stories
2022-11-14 17:06:53 +01:00
Norbert de Langen
8eb96195a5
do not ts ignore test
2022-11-14 14:18:39 +01:00
Ian VanSchooten
3d3c23e9cd
Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
...
# Conflicts:
# code/addons/essentials/package.json
# code/addons/storyshots/storyshots-core/package.json
# code/lib/api/package.json
# code/yarn.lock
2022-11-13 11:59:45 -05:00
Michael Shilman
6fc49dd1b2
Update git head to 7.0.0-alpha.49, update yarn.lock [ci skip]
2022-11-13 23:54:31 +08:00
Michael Shilman
d7eb433300
v7.0.0-alpha.49
2022-11-13 23:50:52 +08:00
Ian VanSchooten
28bac3478e
Add frameworks
2022-11-10 14:25:48 -05:00
Michael Shilman
99fe5792f9
Update git head to 7.0.0-alpha.48, update yarn.lock [ci skip]
2022-11-07 16:00:44 +08:00
Michael Shilman
b58a29b785
v7.0.0-alpha.48
2022-11-07 15:56:24 +08:00
Tom Coleman
43f75b1fed
Add docsPage tag to all Button/Header CLI templates
2022-11-02 17:02:43 +11:00
Michael Shilman
93e154bc4d
Update git head to 7.0.0-alpha.47, update yarn.lock [ci skip]
2022-11-01 12:18:02 +08:00
Michael Shilman
1c706a4a77
v7.0.0-alpha.47
2022-11-01 12:14:02 +08:00
Kasper Peulen
123322c07d
Rename tsx to ts as we don't use jsx anymore in stories
2022-10-31 11:57:39 +01:00
Kasper Peulen
c907472849
Migrate TS templates to CSF3
2022-10-31 11:57:34 +01:00
Kasper Peulen
960426dba3
Move all templates out of cli into renderers
2022-10-31 10:59:17 +01:00
Michael Shilman
a2174e328c
Update git head to 7.0.0-alpha.46, update yarn.lock [ci skip]
2022-10-28 21:32:45 +08:00
Michael Shilman
c64b5be851
v7.0.0-alpha.46
2022-10-28 21:28:37 +08:00
Ian VanSchooten
393a12aac3
Use explicit type imports
2022-10-27 19:33:39 -04:00
Michael Shilman
b60bd552fe
Update git head to 7.0.0-alpha.45, update yarn.lock [ci skip]
2022-10-28 05:58:51 +08:00
Michael Shilman
3ef1436611
v7.0.0-alpha.45
2022-10-28 05:55:09 +08:00
Michael Shilman
323d1271e5
Update git head to 7.0.0-alpha.44, update yarn.lock [ci skip]
2022-10-27 21:57:47 +08:00
Michael Shilman
d4965bd328
v7.0.0-alpha.44
2022-10-27 21:52:14 +08:00
Norbert de Langen
8bc4b24f3b
fixing linting
2022-10-26 10:02:19 +02:00
Norbert de Langen
9e60c3428f
Merge branch 'next' into ugrades/eslint
2022-10-26 08:51:41 +02:00
Norbert de Langen
bc197113d1
Merge branch 'next' into norbert/sb-799-create-a-storybooktypes
2022-10-25 17:06:52 +02:00
Michael Shilman
90bd0961ce
Update git head to 7.0.0-alpha.43, update yarn.lock [ci skip]
2022-10-25 20:15:11 +08:00
Michael Shilman
f801c26f7b
v7.0.0-alpha.43
2022-10-25 20:10:01 +08:00
Norbert de Langen
8e3e508af4
Merge branch 'deprecate/remaining-lib-cli' into norbert/sb-799-create-a-storybooktypes
2022-10-25 13:49:02 +02:00
Tom Coleman
39662b1419
Merge pull request #19595 from storybookjs/tom/sb-849-cant-run-the-v6-store-in-sandboxes-2
...
Add `renderer` field to frameworks, and use to drive v6 store entrypoints
2022-10-25 16:18:53 +11:00
Norbert de Langen
037620f6af
Merge branch 'deprecate/remaining-lib-cli' into norbert/sb-799-create-a-storybooktypes
2022-10-24 15:28:19 +02:00
Norbert de Langen
3ab9868cbd
Merge branch 'next' into ugrades/eslint
2022-10-24 15:07:22 +02:00
Norbert de Langen
6be12c24d8
deal with the aftermath of upgrading eslint
2022-10-24 14:57:37 +02:00
Tom Coleman
5bce63b987
Add renderer
field to preset and use in v6 entries
2022-10-24 16:23:33 +11:00
Michael Shilman
b63d05ac22
Update git head to 7.0.0-alpha.42, update yarn.lock [ci skip]
2022-10-24 12:22:33 +08:00
Michael Shilman
4ed2e832e3
v7.0.0-alpha.42
2022-10-24 12:18:25 +08:00
Norbert de Langen
0aefffea89
fixes
2022-10-22 16:33:04 +02:00
Norbert de Langen
9b3eeeae15
fixes
2022-10-22 12:48:46 +02:00
Norbert de Langen
77ae544d2e
Merge branch 'next' into norbert/sb-799-create-a-storybooktypes
2022-10-22 05:13:58 +02:00
Michael Shilman
29008c4cb8
Update git head to 7.0.0-alpha.41, update yarn.lock [ci skip]
2022-10-21 23:46:16 +08:00
Michael Shilman
7ec6f916eb
v7.0.0-alpha.41
2022-10-21 23:41:55 +08:00
Yann Braga
f81747f61c
only inject babel typescript preset in typescript projects
2022-10-21 15:10:49 +02:00
Yann Braga
b072997c21
fix nextConfigFile logic
2022-10-20 22:58:37 +02:00
Yann Braga
1020906e7a
skip lib check in nextjs framework package
2022-10-20 18:04:08 +02:00
Yann Braga
bfeb0c6a94
add comment in nextjs css webpack config for future reference
2022-10-20 16:34:07 +02:00