Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] option to exclude paths from get stories and the watcher #285

Closed
dannyhw opened this issue Oct 12, 2021 · 2 comments · Fixed by #286
Closed

[6.0] option to exclude paths from get stories and the watcher #285

dannyhw opened this issue Oct 12, 2021 · 2 comments · Fixed by #286
Labels

Comments

@dannyhw
Copy link
Member

dannyhw commented Oct 12, 2021

Is your feature request related to a problem? Please describe.

It can be slow in large repos to run the get stories or watcher command and having an exclude option could be useful for avoiding that.

Describe the solution you'd like

Something like this would be useful and wouldn't break compatibility with the config file used in other frameworks

reactNativeOptions:{
  excludePaths: []
} 

Are you able to assist bring the feature to reality?
Yes

@dannyhw dannyhw added the 6.5 label Oct 12, 2021
@dannyhw dannyhw added this to the 6.0 release milestone Oct 12, 2021
@dannyhw
Copy link
Member Author

dannyhw commented Oct 12, 2021

Chokidar has the ignored option, see here

ignored (anymatch-compatible definition) Defines files/paths to be ignored. The whole relative or absolute path is tested, not just filename. If a function with two arguments is provided, it gets called twice per path - once with a single argument (the path), second time with two arguments (the path and the fs.Stats object of that path).

@dannyhw
Copy link
Member Author

dannyhw commented Oct 12, 2021

glob has the ignore option also, see here

ignore Add a pattern or an array of glob patterns to exclude matches. Note: ignore patterns are always in dot:true mode, regardless of any other settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant