50 Commits

Author SHA1 Message Date
Norbert de Langen
d2c23c82ab
cleanup 2023-02-15 11:47:17 +01:00
Norbert de Langen
62e37c0882
fix pnp 2023-02-14 17:06:21 +01:00
Yadong Zhang
7d5d6485e5 fix: enhanced satisfies handle. 2023-02-05 12:08:55 +00:00
Michael Shilman
d684b94b9c Fix linting 2023-02-05 19:35:33 +08:00
Yadong Zhang
a1f1d0f8e1 feat: added satisfies to ConfigFile [csf-tools]. 2023-02-05 10:31:26 +00:00
Michael Shilman
ce162f215b Add a test and fix it 2023-02-04 18:46:35 +08:00
Michael Shilman
d52da0d2f9 Csf-tools: Fix error handling for storySort variable references 2023-02-04 18:38:31 +08:00
Yann Braga
4ea443c13e Warn users to use default export in main.js
- involves changes in csf-tools to define a flag that tells us there is (or not) a default export
- involves changes in affected packages now that loadMainConfig is async
2023-01-31 10:23:07 +01:00
Yann Braga
4691ac0f76 csf-tools: fix getNameFromPaths in string literal obj property 2023-01-25 15:23:28 +01:00
Yann Braga
a11bcbe35a return undefined when node does not exist 2023-01-20 10:24:05 +01:00
Yann Braga
04b691e443 throw an error with unexpected node value 2023-01-20 10:21:14 +01:00
Yann Braga
a044e18ad5 csf-tools: add helpers to get name from node path 2023-01-20 10:21:14 +01:00
Tom Coleman
899c6c3b2f Merge branch 'tom/sb-1147-update-api-of-source-block' into shilman/update-csf-plugin-source 2023-01-19 13:04:50 +11:00
Michael Shilman
e40126413f Fix comment 2023-01-18 14:22:27 +08:00
Michael Shilman
d5f4ab1d05 Csf-plugin: Move source to docs.source.originalSource 2023-01-18 14:13:35 +08:00
Michael Shilman
61df3ea48c
Update code/lib/csf-tools/src/enrichCsf.ts
Co-authored-by: Jeppe Reinhold <jeppe@chromatic.com>
2023-01-18 10:53:21 +08:00
Michael Shilman
21bdd0d951 Csf-plugin: Support meta description comments 2023-01-16 20:48:58 +08:00
Kasper Peulen
d69d8efb6f Remove csf-to-mdx and use only opt in to recast printing for now 2023-01-13 21:07:11 +01:00
Kasper Peulen
ae4c9e1980 Use recast to preserve line breaks 2023-01-13 21:06:40 +01:00
Michael Shilman
d1e9f2d0de Telemetry: Count play function usage 2023-01-09 12:18:55 +08:00
Michael Shilman
c9bcd9a3c6 Merge branch 'next' into replace-mdx-tag-with-stories-mdx 2022-12-30 17:08:56 +08:00
Michael Shilman
a7dbc8ca22 Update snapshots 2022-12-30 17:01:40 +08:00
Ian VanSchooten
71d4cbad41 Remove unused disable comments 2022-12-29 15:35:51 -05:00
Ian VanSchooten
04d09108f2 Configure all but a few pkgs to allow devDeps 2022-12-29 15:34:17 -05:00
Tom Coleman
9e032aef01 Change to 'stories-mdx' tag to indicate a story defined in an MDX file 2022-12-26 22:14:04 +11:00
Michael Shilman
8617bf5dd9 Fix typescript 2022-12-14 18:14:20 +08:00
Michael Shilman
60ab7cf851 Csf-tools: Fix local vars handling in MDX-generated CSF 2022-12-14 17:45:03 +08:00
Jeppe Reinhold
52c87ee5f0 implement ConfigFile.removeField and use it, run SK migration before builder vite 2022-12-09 21:49:35 +01:00
Michael Shilman
4872094f8a CSF: Add satisfies support to csf-tools 2022-12-05 17:03:45 +08:00
Tom Coleman
efc73d3432 Remove CSF_Meta|Story types and simplify 2022-11-25 15:28:20 +11:00
Michael Shilman
59a5550530 CSF-tools: Support default exports for SB7 2022-11-03 10:39:04 +08:00
Michael Shilman
5954bd8a33 Fix comment [ci skip] 2022-11-01 11:29:25 +08:00
Michael Shilman
789a21b686 Fix typo [ci skip] 2022-11-01 00:27:57 +08:00
Michael Shilman
ffc95536ad CsfPlugin: Fix options handling, add tests 2022-11-01 00:12:52 +08:00
Michael Shilman
ec5dc1c821 CSF-tools: Fix parameters merge for enrichCsf 2022-10-31 23:59:49 +08:00
Michael Shilman
6bbe7f3cd8 Preserve indentation & cleanup 2022-10-30 17:25:01 +08:00
Michael Shilman
4a9fc915d1 CSF plugin: Turn story comments into docs desciptions 2022-10-29 21:31:51 +08:00
Michael Shilman
a1ca59dabd Fix linting errors 2022-10-29 12:02:45 +08:00
Michael Shilman
52fab185a9 Merge branch 'next' into shilman/csf-plugin 2022-10-29 11:15:45 +08:00
Michael Shilman
f7edd49250 Add csf-plugin to replace source-loader 2022-10-29 11:00:44 +08:00
Michael Shilman
ff964c09e9 Reorder tests to avoid confusoin 2022-10-28 13:55:29 +08:00
Michael Shilman
45a8482f30 Clean up tests 2022-10-28 13:54:26 +08:00
Michael Shilman
2aff120a62 CSF-tools: Add source extraction WIP 2022-10-28 13:31:16 +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
Michael Shilman
1593be6602 CSF tools: Add tags support 2022-10-26 13:55:25 +08:00
Norbert de Langen
6be12c24d8
deal with the aftermath of upgrading eslint 2022-10-24 14:57:37 +02:00
Norbert de Langen
e3e1e62e30
step 9 2022-10-22 02:19:58 +02:00
Ian VanSchooten
6bdfcfad14 Convert @ts-ignore to @ts-expect-error
And remove unused directives
2022-09-06 22:40:59 -04:00
Norbert de Langen
c2bbe43d02
stage0 2022-07-21 11:24:07 +02:00