Replies: 1 comment
-
Good suggestion, thank you @mg-aceik . I've put it in our backlog. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your suggestion related to a problem? Please describe.
I want to co-locate component .stories.tsx and .test.tsx files in the same folder under src/components.
To do this and to exclude them from the component builder I need to be able to set this regex.
jss/packages/sitecore-jss-dev-tools/src/templating/utils.ts
Line 42 in 7905a71
Describe the solution you'd like
Allow passing this regex as a param in the component builder.
Is there a way to achieve this functionality with exisiting tools?
My current workaround is to copy https://github.com/Sitecore/jss/blob/7905a71067fd07cd21dcd6f9dc1a63abcccd4abb/packages/sitecore-jss-dev-tools/src/templating/nextjs/generate-component-builder.ts into my solution and modify it to remove these unwanted components.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions