vscode-generate-react-component
vscode-generate-react-component copied to clipboard
Feature request: Conditional files
While we can use conditionals inside files, it would be awesome if we could use files conditionally.
My use case is to let the user decide css or scss - and then copy only one of the files from the template. This seems easier than making file extensions configurable, plus users could add flags for test and readme files to be generated.
Haven't thought much about how to actually make this work :) Maybe some kind of magic filename syntax á la:
my-template/if--scss--stylesheet.scss
my-template/if--!scss--stylesheet.css
my-template/if--test--__ComponentName__.test.js
Doable or hard? :)
where the extension settings is