I have a web application, including front and backend code, which I would like to push to github, but, it currently has some of its dependencies managed it its source tree. The backend code is Perl, and installing module dependencies from CPAN is well understood, so I don't have those in there. I mostly have jQuery libraries and some other Javascript libraries that are open source.
-mycode
-mydir
-mycode
-jquerylibs (with their license)
-mycode
-jslibs (with their own licenses)
-mycode
For deployment, this is extremely convenient, as I can control which versions of the libraries are being used, and also not force people to use a CDN (Content Delivery Network) to load jQuery etc. from a remote domain which might not still be online in three or five years.
However, I am not sure if it is appropriate to include the source of other projects in with my application, even if I include the license files.
What's the best way to include dependencies like this in an open source web application, doing honor to the dependencies whilst maintaining the convenience of a working deployment?
Have you considered using a package management like Bower for your JS dependencies? Package management for this front-end stuff is becoming more popular and similar to backend modules (CPAN, gems, pip, etc.)
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