You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Good suggestion, thank you @mg-aceik . I've put it in our backlog.
We have an item for a filter functionality that does a similar things, suggested here: #1551 too, so we'll decide which approach is better.
backlogIssue/PR/discussion is reviewed and added to backlog for the further work
2 participants
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions