tullamods / OmniCC

Cooldown count for everything
https://tullamods.com/omnicc
MIT License
99 stars 21 forks source link

Monorepo #307

Closed Tuller closed 5 years ago

Tuller commented 5 years ago

Here's my proposed layout. I checked out the commit immediately before the merge on master and did a subtree merge of OmniCC_Config (before commit that wiped out all of the files) into a sub directory. If we were to use this going forward I would probably force push this to master.

Benefits

Drawbacks:

Jaliborc commented 5 years ago

I personally have a few issues with this approach. Just my humble opinion, but I see several drawbacks and little to no advantages.

Drawbacks:

Advantages

P.S: I'm probably wrong here, but I am under the impression that you might believe my proposed change in the repo makes Config not Load on Demand. Just in case of that I will clarify: Config is still LOD. The OmniCC_Config/OmniCC_Config.toc file is loaded on demand as before. It then loads OmniCC/config.xml, which contains all the actual files originally in OmniCC_Config. This makes latter changes to the files being loaded part of the repo and minimizes changes to the .toc file. All the files listed in config.xml were not loaded by OmniCC, and thus are only loaded when OmniCC_Config is.

In conclusion, I still prefer the merged option, as it makes no changes to the existing pipeline, and thus working for both of us, while still having all the code in a single repo. The only disadvantage is that this repo doesn't track OmniCC_Config/OmniCC_Config.toc.

What do you think?

Tuller commented 5 years ago

Weird, it’s surprising to me that you can load files outside of your own addon.

Jaliborc commented 5 years ago

.toc files work with relative paths. So you can just ..\OtherAddon\myfile.lua if you want.

I tried it for the first time a couple years ago. Was mind blown it worked at all too.

Jaliborc commented 5 years ago

So, what is your opinion on either approach?

Tuller commented 5 years ago

I still like mine due to the aforementioned auto toc adjustments for classic/retail with the packager, but I'll survive.