Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Should I Package or Declare Javascript Dependencies In An Open Source Application? [closed]

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?

like image 479
Marcus Avatar asked Mar 19 '13 12:03

Marcus


1 Answers

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.)

like image 71
sergiopereira Avatar answered Oct 20 '22 07:10

sergiopereira