Distribution of jQuery plugin - what files are needed?

I use the popular jquery.validation plugin. I downloaded the zip file and saw that it contains several files.

/demo/
/lib/
/localization/
additional-methods.js
changelog.txt
jquery.validate.js
jquery.validate.min.js
jquery.validate.pack.js
todo

I would like to keep things bright. Removing the demo folder, changelog.txt, jquery.validate.js and todo seems obvious. I will include a link to min.js in my html file. What about pack.js? What is it? Do I really need localization and lib folders? The lib folder contains jquery, which seems empty because I already download jquery from Google CDN.

Can someone tell me the standard way to distribute jquery plugins in an easy manner?

+3
source share
1 answer

, , , , jquery.validate.min.js ( jquery.validate.js). () . , jquery.validate.pack.js . jQuery CDN, lib. jquery.form.js / jquery.metadata.js, ; .

:


* jQuery 1.3.2 1.4.2,


*
* form plugin AJAX submit

, β€” , . , UI, CSS ( CSS , , ..). , .

+2

Source: https://habr.com/ru/post/1792602/


All Articles