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