lerna has this neat feature for dynamically creating the commit message. They use placeholders in a string and replace them with the version number. For example:
What if we did something similar to allow users to dynamically create the output file. This would enabled most users to use the feature directly from the command line. It would also negate the need for additional props like fileExt.
lerna has this neat feature for dynamically creating the commit message. They use placeholders in a string and replace them with the version number. For example:
What if we did something similar to allow users to dynamically create the output file. This would enabled most users to use the feature directly from the command line. It would also negate the need for additional props like
fileExt
.We could possibly use Path's Path Object as the variables to replace.
So, in the case of:
These could be the options:
We could also just make up our own, I mean how useful would
ext
orbase
be when the file extensions is always going to be.css
instead of.scss
?This feature would also enable the preservation of the file tree (since we may default the behavior to flattening the files)
Would this be passed via the
output
prop, or somewhere else/new API?