38 Commits

Author SHA1 Message Date
Norbert de Langen
dbb98764fa
some typings improvements 2022-11-14 14:05:51 +01:00
Norbert de Langen
bcd14f61d1
less noise when compiling 2022-11-11 16:49:03 +01:00
Norbert de Langen
9fc90597d9
revert bundling in components into blocks 2022-11-10 17:00:44 +01:00
Valentin Palkovic
9593c414a7 Fix prepare script on Windows machines 2022-11-06 15:07:35 +01:00
Norbert de Langen
a18424ab8a
fix a bug me and ian found
Co-authored-by: Ian VanSchooten <ian.vanschooten@gmail.com>
2022-11-02 16:15:04 +01:00
Norbert de Langen
3c748d9135
fixes 2022-10-18 11:30:29 +02:00
Norbert de Langen
d52f54cd57
Merge branch 'next' into ts-up-lib-csf-tools-josh-the-dev 2022-10-05 11:33:04 +02:00
joshwooding
6cc0971ffa
Fix prepare bundle on Windows 2022-09-27 23:23:57 +01:00
Norbert de Langen
6ebde54236
fix the build system.
Emotion changed to use exports map, and esbuild wasn't pivking the right entry anymore,
resulting in react not being detected, and thus not bundled, and thus missing at runtime!

I changed the tsup/esbuild config to prefer the ESM version, and this seems to have fixed the issue.

Many thanks to @Anderist for the assist!
2022-08-26 14:30:07 +02:00
Michael Shilman
dcc9f08396 Merge branch 'next' into vite-frameworks-react 2022-08-25 21:48:00 +08:00
Ian VanSchooten
ed8813d330 Avoid exit code 0 when tsup fails 2022-08-24 17:48:56 -04:00
Сергей Козлов
cbf01dff3f replace rollup-plugin-node-polyfills to analogs 2022-08-21 22:17:23 +03:00
Norbert de Langen
852d1263d3
fixes 2022-08-10 11:20:47 +02:00
Norbert de Langen
e575669e0d
use local ts-node 2022-07-27 16:42:03 +02:00
Norbert de Langen
7d80c53471
add linting on scripts dir && fix linting 2022-07-23 17:15:13 +02:00
Norbert de Langen
624016716c
bootstrap works 2022-07-21 15:42:01 +02:00
Norbert de Langen
057c40124d
Merge branch 'future/base' into future/drop-emotion-10-types
# Conflicts:
#	lib/blocks/src/blocks/DocsContainer.tsx
#	lib/blocks/src/blocks/SourceContainer.tsx
#	lib/blocks/src/blocks/Subtitle.tsx
#	lib/blocks/src/blocks/Title.tsx
#	lib/blocks/src/components/ColorPalette.tsx
#	lib/blocks/src/components/IconGallery.tsx
#	lib/blocks/src/components/Source.tsx
#	lib/blocks/src/components/Story.tsx
#	lib/components/src/placeholder/placeholder.tsx
#	lib/ui/src/components/preview/toolbar.tsx
#	lib/ui/src/components/preview/utils/types.tsx
#	lib/ui/src/components/sidebar/Sidebar.tsx
#	lib/ui/src/components/sidebar/TreeNode.tsx
2022-07-19 09:58:12 +02:00
Tom Coleman
7eb2ee398b Don't clean in watch mode.
cc @ndelangen this fixes annoying errors like:

```
error - ../../lib/blocks/dist/index.js
Module build failed: Error: ENOENT: no such file or directory, open '/Users/tom/GitHub/storybookjs/storybook/lib/blocks/dist/index.js'
```
2022-07-19 13:41:28 +10:00
Norbert de Langen
7d4cb6b040
Merge branch 'future/base' into future/drop-emotion-10-types
# Conflicts:
#	scripts/prepare/bundle.ts
2022-07-06 15:52:27 +02:00
Norbert de Langen
4390ceaaba
fix 2022-07-06 13:35:13 +02:00
Norbert de Langen
a5c35e1b3e
improvements to setup 2022-07-06 00:30:10 +02:00
Mateusz Burzyński
0cd2e35f7d Make Emotion's Theme augmentation work in prod and dev 2022-07-04 12:25:43 +02:00
Norbert de Langen
0cd0ee3f8b
test 2022-06-28 11:57:00 +02:00
Norbert de Langen
002602df3d
wip 2022-06-27 14:13:19 +02:00
Norbert de Langen
fa872be6ea
cleanup, I'm in the process of removing stats output completely from the manager builder, because it's not configurable anyway 2022-06-27 09:55:39 +02:00
Norbert de Langen
4461be270b
cleanup 2022-06-24 16:57:43 +02:00
Norbert de Langen
7aeedfdb9d
wip 2022-06-24 15:51:17 +02:00
Norbert de Langen
6d8c17c1ec
progress 2022-06-24 12:28:48 +02:00
Norbert de Langen
f5431237cf
polyfills and such 2022-06-23 21:17:13 +02:00
Norbert de Langen
5cbe4a2959
ok, so this is step 1, just an option, not final.
- We prebundle the entire lib/ui with tsup.
- We tell the manager builder to serve lib/ui/dist as part of staticDirs
- We add the prebundled runtime to the main template as script reference

This works! Webpack builds ONLY the addons, not the manager UI!

But there's a problem... the manager gets react components injected into it.
These react components do not share the same version of react.
That causes the well know: hooks-call problems.

So left to investigate:
- Will this really work? Does bundling lib/ui and everything it needs break nothing?
- How to force a single version of react? (all dependencies normally coming from the manager, really)
2022-06-23 16:43:18 +02:00
Norbert de Langen
6ee7430067
another one 2022-06-22 15:16:19 +02:00
Norbert de Langen
a235877612
improve 2022-05-26 13:20:58 +02:00
Norbert de Langen
1763a91403
change presets source to be named index 2022-05-26 11:16:11 +02:00
Norbert de Langen
ec41d93c25
wip 2022-05-25 16:00:47 +02:00
Norbert de Langen
426b68e570
skip generating type definitions in prep-mode 2022-05-25 13:20:27 +02:00
Norbert de Langen
6f9f8b1b70
improve 2022-04-29 16:40:31 +02:00
Norbert de Langen
ba354b86a8
working tsup setup 2022-04-29 10:06:04 +02:00
Norbert de Langen
7335874245
migrate the custom package bundling to use tsup 2022-04-28 18:44:12 +02:00