I am developing a pretty large JavaScript library (Formula.js) of functions (450+). Most of them are pretty independent from each other and totally self-contained, or make use of well-known third-party libraries (Moment.js for example). In order to support discussions and manage contributions at the function level rather than at the library level, I created one Gist per function (Cf. CONVERT Gist), and one repository for the entire library. This makes it easy to include the code of a function in the function's documentation (Cf. CONVERT documentation).
My question is: how do I keep the master repository synchronized with the Gists?
The solution should:
Additional thoughts:
I could not find many examples of projects being managed that way. I'm also rather unexperienced with Git. Therefore, the workflow I'm suggesting might be totally flawed, or introduce unwanted complexity. Any thoughts on possible best practices for keeping things under control are much welcome.
Seeing as each gist is in fact a git repository, you could use the git submodule feature to include them all in your primary GitHub repository.
Have a look at this page from the book, http://git-scm.com/book/en/Git-Tools-Submodules , it even has a section on so-called Superprojects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With