1064 Commits

Author SHA1 Message Date
Norbert de Langen
fbc3db6b10
Merge branch 'norbert/sb-524-webpack5react18ts' into norbert/sb-525-webpack5react17js 2022-10-05 09:39:45 +02:00
Norbert de Langen
031fb9ce23
Merge branch 'norbert/sb-625-remove-cypress-from-the-monorepo' into norbert/sb-524-webpack5react18ts 2022-10-05 09:38:24 +02:00
Norbert de Langen
1b361c42b5
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-05 09:28:36 +02:00
Tom Coleman
17ddcb71ba Disable smoke test on cra/default-ts
https://github.com/storybookjs/storybook/issues/19351
2022-10-05 11:49:16 +11:00
Ian VanSchooten
2674cc1baa
Merge pull request #19259 from storybookjs/vite/framework-plugins
Issue: https://github.com/storybookjs/builder-vite/issues/498

Closes https://github.com/storybookjs/storybook/pull/19245

## What I did

When we made the change in 7.0 to start using the user's `vite.config.js`, I made the (faulty) assumption that users would already have vite framework plugins (e.g. `@vitejs/plugin-react`) installed.  But this isn't always true, for example, a project might just be a collection of components being exported, and there may not be an actual app.  

So, this PR checks to see if the required framework plugin is already in the config, and if not, adds it.  I created a utility function to check for the plugin, but ideally this would live in a `vite-core` instead of duplicated across each framework.  This, combined with the duplication in https://github.com/storybookjs/storybook/pull/19216, makes me lean towards creating such a package.  But, it can be done any time and these duplications cleaned up at that point, so I don't think it's a blocker.

## How to test

Create a sandbox, delete `vite.config.js`, and start storybook.  Without this change there would be a crash, but it should work just fine now.
2022-10-04 13:47:33 -04:00
Ian VanSchooten
313b1eeef6 Merge remote-tracking branch 'origin/next' into vite/framework-plugins 2022-10-04 09:52:13 -04:00
Norbert de Langen
cebbda6ba5
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-04 15:30:37 +02:00
Norbert de Langen
bd0a420209
improve the tsconfig
So we do not get the warning:
ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin

...anymore
2022-10-04 15:14:41 +02:00
Norbert de Langen
7cdb3417f3
add a template for react17 2022-10-04 12:14:24 +02:00
Norbert de Langen
4ed9abd6af
fix the template definition 2022-10-04 11:23:25 +02:00
Norbert de Langen
2f29db5e1f
change name 2022-10-04 11:18:56 +02:00
Norbert de Langen
47da89522c
add react18 + webpack5 template 2022-10-04 09:50:50 +02:00
Norbert de Langen
ecae3e3e2f
Merge pull request #19322 from jeangregorfonrose/jean-storybook
Build: Bundle addons/essentials with ts-up
2022-10-04 10:32:00 +03:00
Norbert de Langen
448f5f48c5
Merge pull request #19307 from bovandersteene/bovds/disable-ngcc
feat(angular): disable ngcc when not needed
2022-10-04 10:02:32 +03:00
Norbert de Langen
16dccf7d54
Merge branch 'next' into jean-storybook 2022-10-04 08:54:57 +02:00
Norbert de Langen
758427e900
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-04 08:49:19 +02:00
Michael Shilman
7efe75a445 Update danger config to accept "build" label 2022-10-04 10:11:42 +08:00
Bo Vandersteene
dfd38af1df make options optional 2022-10-03 21:55:24 +02:00
Ian VanSchooten
c4c4f68549 Merge remote-tracking branch 'origin/next' into vite/framework-plugins
# Conflicts:
#	code/frameworks/react-vite/src/preset.ts
2022-10-03 12:35:07 -04:00
Norbert de Langen
62d2df7ecb
regen lockfiles 2022-10-03 18:23:58 +02:00
Norbert de Langen
83b4bb2db4
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-03 18:13:15 +02:00
Norbert de Langen
8f31e0ca62
Merge branch 'tech/tsup-lib-client-api' into tech/tsup-core-client 2022-10-03 17:52:14 +02:00
Norbert de Langen
8adcd1e2e8
add required dependency 2022-10-03 17:45:43 +02:00
Norbert de Langen
edf0cc8201
Merge branch 'next' into tech/tsup-lib-client-api 2022-10-03 17:42:15 +02:00
Norbert de Langen
c8946632fe
add required dev dep 2022-10-03 17:40:51 +02:00
Norbert de Langen
5bee2e9fe9
remove globals file 2022-10-03 17:37:20 +02:00
Norbert de Langen
67f0aafe74
Merge branch 'next' into tech/tsup-core-client
# Conflicts:
#	code/lib/core-client/src/globals.ts
#	code/lib/core-server/src/presets/common-preset.ts
2022-10-03 17:36:56 +02:00
Norbert de Langen
f3299fe1b3
cleanup 2022-10-03 17:27:50 +02:00
Norbert de Langen
78352c1def
Merge branch 'next' of github.com:storybookjs/storybook into next 2022-10-03 17:11:12 +02:00
Norbert de Langen
ac4622d57b
Merge branch 'tech/tsup-lib-api' of github.com:storybookjs/storybook into next 2022-10-03 17:11:05 +02:00
Norbert de Langen
bba5c8c321
Merge branch 'next' into remove-react-classes-global 2022-10-03 17:46:26 +03:00
Norbert de Langen
b2ad45cd97
Merge pull request #19317 from tolkadot/update-lib-telemetry
chore(telemetry): update package.json paths for compatibility with ts-up
2022-10-03 17:41:37 +03:00
Norbert de Langen
a017d1e344
this preset doesn't actually have any of these files 2022-10-03 15:54:33 +02:00
Norbert de Langen
561a5ad99e
make it platform-node 2022-10-03 15:45:27 +02:00
Norbert de Langen
750747a71d
Merge branch 'next' into jean-storybook 2022-10-03 15:43:42 +02:00
Norbert de Langen
28995ee2c0
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-03 15:33:29 +02:00
Norbert de Langen
767830f95d
Merge pull request #19308 from javier-arango/feat/lib-store-tsup
Build lib/store with tsup
2022-10-03 11:01:47 +03:00
Norbert de Langen
0b3682bd92
Merge pull request #19283 from storybookjs/chore/target-defaults
chore: forward parameters in command execution
2022-10-03 10:55:05 +03:00
Michael Shilman
c05ee07dbf
Merge pull request #19312 from storybookjs/shilman/fix-sb-add
CLI: Update sb add for main.js
2022-10-03 14:38:07 +08:00
Michael Shilman
0ac247d401 Delete unused tests 2022-10-03 14:02:19 +08:00
Jean
6d6b26d3dc Modified the package for essentials 2022-10-02 22:23:59 -04:00
Ian VanSchooten
3bfce91637 Add missing dependency on "@storybook/addons" 2022-10-02 20:54:11 -04:00
Michael Shilman
6bb0e7454a Comment test code (will get deleted soon) 2022-10-03 01:05:12 +08:00
Michael Shilman
ed07861e50 Add vue-vite exports for builder-vite 2022-10-03 01:02:22 +08:00
Michael Shilman
537c8bdb62 Fix typoo 2022-10-03 00:46:12 +08:00
Michael Shilman
6ebcb25459 Update version 2022-10-02 20:27:54 +08:00
Michael Shilman
5d175ed378 Merge branch 'next' into vite/vue2 2022-10-02 20:27:36 +08:00
Michael Shilman
db854625ef Fix hooks stories comment [ci skip] 2022-10-02 20:21:49 +08:00
Michael Shilman
0814a13d82 Hooks state bug in Vue2 2022-10-02 18:00:32 +08:00
Michael Shilman
d7d91a1d46 Fix merge issues 2022-10-02 17:34:07 +08:00