-
Notifications
You must be signed in to change notification settings - Fork 87
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
Feature request: Excluding specific files #31
Comments
I don't think it makes sense to use a configuration file (yes another dot-file in the project for no good reason). I'd say a variation of providing configuration in comment is a good approach, e.g. // @create-index {"ignore": ["stories.(js)$"]}
This needs to be done in two PRs: (1) enable the above logic, (2) add This is quite a substantial amount of work. Though, if you'd raise the PRs, I'd be happy to review and and publish it. |
Was any work done on this feature? |
@advance512 I had an unexpected problem with my health and I couldn't start working on it in the last few weeks. I think that I'll be able to start implementation in the next week. |
Feel well, @hinok! Thanks for any help :) |
- This commit add functionality to ignore files based on provided regexps. - in index.js config must be specified as below // @create-index {"ignore":["/foo.js"]}
- This commit add functionality to ignore files based on provided regexps. - in index.js config must be specified as below // @create-index {"ignore":["/foo.js"]}
- This commit add functionality to ignore files based on provided regexps. - in index.js config must be specified as below // @create-index {"ignore":["/foo.js"]}
- This commit add functionality to ignore files based on provided regexps. - in index.js config must be specified as below // @create-index {"ignore":["/foo.js"]}
- Add functionality to ignore files based on provided regular expressions - Support writeIndex and writeIndexCli - in index.js config must be specified as below // @create-index {"ignore":["/foo.js"]}
Hey,
It's just proposal of a new feature that could be very handy.
I would like to exclude some files which are added to generated index.js files, why?
I have a folder
/icons
witch contains all my icons (each icon is a react component).In this folder I have also
stories.js
file (I'm using react-storybook). Nowstories.js
is always added to the end of the file and my storybook is broken.I think that it could work also for other people in other more advanced cases.
I could implement it and add PR but before I would like to talk about proposed solutions.
1. Using a "special comment" in generated
index.js
file.2 Using a "special configuration file"
.create-index
inside a specific directory.create-index
The text was updated successfully, but these errors were encountered: