opensearch-project / oui

OpenSearch UI Framework
Apache License 2.0
32 stars 69 forks source link

Remove build-time EUI aliases in `yarn clean` #1061

Open BSFishy opened 11 months ago

BSFishy commented 11 months ago

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

AwesomeSauce42 commented 11 months ago

Hi, I would like to work on this issue!

BSFishy commented 11 months ago

Hi, I would like to work on this issue!

Great! I assigned it to you. Leave a comment if you get stuck anywhere