886 Commits

Author SHA1 Message Date
Norbert de Langen
d08c11c6a3
lint the newly linted code 2022-07-25 18:51:24 +02:00
Norbert de Langen
d51b4d5126
Merge branch 'next' into future/move-code-into-directory
# Conflicts:
#	code/addons/a11y/package.json
#	code/examples/preact-kitchen-sink/package.json
#	code/lib/blocks/package.json
#	code/yarn.lock
#	package.json
2022-07-25 15:25:19 +02:00
Norbert de Langen
1775e4676a
ensure packages are installed before running bootstrap via yarn 2022-07-25 15:02:33 +02:00
Norbert de Langen
57dd1f1be2
cleanup npm-scripts in ./scripts 2022-07-24 12:43:14 +02:00
Norbert de Langen
4b141c9be4
fix some deepscan issues 2022-07-23 19:40: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
43649105e1
fix refs to where cypress tests are 2022-07-22 18:57:20 +02:00
Norbert de Langen
897c8da629
experiment on making e2e tests work again 2022-07-22 18:17:21 +02:00
Norbert de Langen
c23f36aa89
fix the e2e script 2022-07-22 09:30:35 +02:00
Norbert de Langen
2fa7b08301
fix publish step, fix chromatics step 2022-07-22 09:20:32 +02:00
Norbert de Langen
02b6cf65e9
fix examples script 2022-07-21 23:39:46 +02:00
Norbert de Langen
b016c1efc9
fix unit tests & fix linting 2022-07-21 23:25:23 +02:00
Norbert de Langen
a71a94aa76
add missing dependencies need for running unit tests 2022-07-21 22:32:03 +02:00
Norbert de Langen
6653781654
move babel plugin from the oddest of places, this is exclusively used in tests script in the monorepo. 2022-07-21 21:56:41 +02:00
Norbert de Langen
1e0998ee02
disable overriding global registry, fix reference to .babelrc file in jest transformer, fix ref to examples in smoke-tests 2022-07-21 21:21:01 +02:00
Norbert de Langen
f8e93edd73
fix some scripts to point at the code dir 2022-07-21 21:06:23 +02:00
Norbert de Langen
d7b63c9ddd
ignore storyshots in prep-mode 2022-07-21 15:52:59 +02:00
Norbert de Langen
624016716c
bootstrap works 2022-07-21 15:42:01 +02:00
Norbert de Langen
c2bbe43d02
stage0 2022-07-21 11:24:07 +02:00
Norbert de Langen
aafc83a6a6
fix deepscan 2022-07-21 09:51:39 +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
5d56f4b948
Merge pull request #18730 from storybookjs/add-channel-to-docs-context
Addon-docs: Localize channel to docs context
2022-07-19 14:16:35 +10: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
Michael Shilman
40ccd92403 Merge branch 'next' into future/base 2022-07-15 11:09:15 -07:00
Norbert de Langen
d197a9141c
fix script for windows 2022-07-08 10:39:29 +02: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
8b6c097885
fix 2022-07-06 13:08:38 +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
164263ceb0
Merge branch 'future/pbm/stage0' into future/type-checking-script 2022-06-30 08:49:52 +02:00
Norbert de Langen
5d6972902d
try this 2022-06-30 00:48:42 +02:00
Norbert de Langen
ac9051d57f
Merge branch 'future/pbm/stage0' into future/type-checking-script 2022-06-29 17:54:28 +02:00
Norbert de Langen
54c5feab99
Merge branch 'future/base' into future/pbm/stage0
# Conflicts:
#	lib/core-server/src/__snapshots__/cra-ts-essentials_manager-dev-posix
#	lib/core-server/src/__snapshots__/cra-ts-essentials_manager-prod-posix
#	lib/core-server/src/__snapshots__/html-kitchen-sink_manager-dev-posix
#	lib/core-server/src/__snapshots__/html-kitchen-sink_manager-prod-posix
#	lib/core-server/src/__snapshots__/vue-3-cli_manager-dev-posix
#	lib/core-server/src/__snapshots__/vue-3-cli_manager-prod-posix
#	lib/core-server/src/__snapshots__/web-components-kitchen-sink_manager-dev-posix
#	lib/core-server/src/__snapshots__/web-components-kitchen-sink_manager-prod-posix
#	lib/manager-webpack5/package.json
#	lib/manager-webpack5/src/presets/manager-preset.ts
#	yarn.lock
2022-06-29 17:53:30 +02:00
Norbert de Langen
b34e02013e
add a yarn check command similar to yarn build for type checking packages (in watch mode too!) 2022-06-29 17:48:26 +02:00
Norbert de Langen
37dd381f97
fixes 2022-06-29 14:31:18 +02:00
Norbert de Langen
2f0b3626ae
we should revert this once the prebuilt manager is merged 2022-06-29 13:24:47 +02:00
Norbert de Langen
ed240ebf0d
Merge commit '95bd68d08a0f40ab37de688c8966932b3fb85aa8' into pr/iamandrewluca/18323
# Conflicts:
#	.circleci/config.yml
#	SECURITY.md
#	addons/a11y/src/components/VisionSimulator.test.tsx
#	app/vue/src/client/preview/config.ts
#	app/vue3/src/client/preview/config.ts
#	docs/addons/writing-addons.md
#	docs/api/cli-options.md
#	docs/builders/webpack.md
#	docs/configure/css-troubleshooting/angular.mdx
#	docs/contribute/code.md
#	docs/contribute/new-snippets.md
#	docs/essentials/interactions.md
#	docs/essentials/introduction.md
#	docs/faq.md
#	docs/get-started/install.md
#	docs/sharing/publish-storybook.md
#	docs/snippets/common/button-story-project-args-theme.js.mdx
#	docs/snippets/common/storybook-main-enable-transcludemarkdown.js.mdx
#	docs/snippets/common/storybook-main-with-single-static-dir.js.mdx
#	docs/snippets/common/storybook-test-runner-install.npm.js.mdx
#	docs/snippets/common/storybook-test-runner-install.yarn.js.mdx
#	docs/snippets/common/storybook-vite-builder-aliasing.js.mdx
#	docs/writing-stories/build-pages-with-storybook.md
#	docs/writing-stories/play-function.md
#	docs/writing-tests/snapshot-testing.md
#	docs/writing-tests/visual-testing.md
#	examples/vue-3-cli/.storybook/main.js
#	examples/vue-cli/.storybook/main.js
#	examples/vue-kitchen-sink/.storybook/main.js
#	examples/vue-kitchen-sink/.storybook/preview.js
#	examples/vue-kitchen-sink/src/App.vue
#	examples/vue-kitchen-sink/src/stories/__snapshots__/core.stories.storyshot
#	examples/vue-kitchen-sink/src/stories/__snapshots__/custom-decorators.stories.storyshot
#	examples/vue-kitchen-sink/src/stories/core.stories.js
#	lib/cli/src/generators/ANGULAR/angular-helpers.ts
#	lib/cli/src/generators/ANGULAR/index.ts
#	lib/components/package.json
#	lib/components/src/blocks/ArgsTable/ArgsTable.tsx
#	lib/components/src/blocks/Source.tsx
#	lib/components/src/spaced/Spaced.tsx
#	lib/components/src/tabs/tabs.tsx
#	lib/core-server/package.json
#	lib/preview-web/src/Preview.tsx
#	lib/preview-web/src/PreviewWeb.integration.test.ts
#	lib/preview-web/src/PreviewWeb.mockdata.ts
#	lib/preview-web/src/PreviewWeb.test.ts
#	lib/preview-web/src/PreviewWeb.tsx
#	lib/ui/src/index.tsx
#	yarn.lock
2022-06-29 13:14:45 +02:00
Michael Shilman
93c4ff13d9 Extract doc blocks 2022-06-29 00:13:43 +08:00
Norbert de Langen
66527195f7
fix examples e2e test 2022-06-28 12:59:50 +02:00
Norbert de Langen
0cd0ee3f8b
test 2022-06-28 11:57:00 +02:00
Norbert de Langen
0cf66eb8a8
cleanup 2022-06-28 10:01:48 +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
fc96c97010
cleanup 2022-06-24 16:46:02 +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