mint-metrics / mojito-js-delivery

🧪 Source-controlled JS split testing framework for building and launching A/B tests.
https://mojito.mx/docs/js-delivery-intro
Other
16 stars 30 forks source link

Provide example config.js and lib/shared-code.js to avoid merge conflicts from upstream #9

Closed kingo55 closed 5 years ago

kingo55 commented 5 years ago

If we want to make it easy to merge an upstream repo (such as this one), from another Mojito container, users will constantly run into merge conflicts for commonly shared files such as:

This makes it harder to merge because you have to mange the conflicts on these particular files.

Instead, what if we renamed these files to:

And upon first run of gulp scripts, if config.js or shared-code.js files do not exist, we create them.