Slogger
Slogger copied to clipboard
Breaking into seperate repos
Locally when I setup slogger I broke the plugins into their own repos. Instead of modifying the plugins directly in the repo. I then used git submodules to pull them back in.
I also ignored the plugins directory in gitignore as well as the git submodules file so that after modifying my plugins, the repo itself was still 'clean' and I could potentially get future updates without any issues.
I also wrote a few small aliases that would add a plugin directly from github using this design.
This provides a few benefits:
- Users can fork and modify plugins easily for PRS and such.
- Users can modify plugins without worrying about pains in future upgrades.
- Plugins are very easy to install.
- Creating plugins and adding them from external sources is much easier.
- Testing plugins can be easier. Having the plugin in a repo to itself means you can easily manage unit tests for each plugin.
Would you be willing to look at a PR that does this setup for the main slogger repo? I didn't want to put in the time to clean up my code and make it work if it isn't something you're interested in. You're the owner and I wanted to make sure you're cool with it before starting.
Oh, I also forgot to mention. THANK YOU FOR THIS! Seriously, I am thrilled to use it!
I love the idea. We just need to make sure that adding/removing plugins is something that slightly-technical, non-Ruby, non-git users can pull off with a little instruction. If you think that's doable, please do send a PR to get it started.