folderize
folderize copied to clipboard
feat: make optional files list customizable
Issue
This PR addresses part of this issue https://github.com/ee92/folderize/issues/3.
Description
This PR adds the ability to customize the files that you want to be listed when selecting optional files to create.
It does so by adding a setting to VSCode that can be set to certain defined presets or custom options.
For more information on how this new system works, I added some documentation to the readme.
It also generalizes the ability to import an optional file in the component file and creates the possibility of importing the component in the optional files so for example for test files, you would want to import the component so the extension can do it for you.
I added two presets aside from the two existing ones that I felt were common enough that it justified their addition but if you disagree let me know and I can remove them. If there is any other preset that you think would be good to add, also let me know.
Notes:
This is my first time working with Typescript so sorry if I butchered the code. Any comments on how to improve it will be most welcomed.
For some reason, my config of VSCode must be different and it added some spaces to format things like imports and function calls. I can work on reversing those changes if it was intentional the lack of spaces in those cases. Please let me know how you want me to proceed regarding this.
Preview
Extension with new feature in action:
Here is what settings I had set for said preview:
@ee92 Will this ever be merged?