oui icon indicating copy to clipboard operation
oui copied to clipboard

Remove build-time EUI aliases in `yarn clean`

Open BSFishy opened this issue 1 year ago • 2 comments

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

It's not always desirable to go through the entire build process, for example, I may stop it early if I only want to see the Babel outputs. However, if I stop the build process early, I'll still have a huge number of EUI aliases in my files, which I don't want to push to my remote.

Describe the solution you'd like

It would be nice if the yarn clean script would also remove build-time EUI aliases. The code to do this is in the compile-oui.js file:

https://github.com/opensearch-project/oui/blob/a1b90296c324ac936f2c6594f694324ef299cd44/scripts/compile-oui.js#L160-L175

Ideally, this is extracted into a utils.js file, and both the compile-oui.js file and compile-clean.js utilize.

Describe alternatives you've considered

Not doing this, but then I have to wait through the entire build process to get the aliases removed.

Additional context N/a

BSFishy avatar Oct 05 '23 17:10 BSFishy