[TikiWiki-commits] [Git][tikiwiki/tiki][master] [DOC] Add src/js/jquery-tiki/README.md

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69d81665de242_3b19143c226fa@gitlab-sidekiq-low-urgency-cpu-bound-v2-67f7658db8-drzph.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
87a11e87 by Benoit Grégoire at 2026-04-09T21:05:51+00:00
[DOC] Add src/js/jquery-tiki/README.md
---
* [DOC] Add src/js/jquery-tiki/README.md

See merge request tikiwiki/tiki!9984

- - - - -


1 changed file:

- + src/js/jquery-tiki/README.md


Changes:

=====================================
src/js/jquery-tiki/README.md
=====================================
@@ -0,0 +1,16 @@
+# src/js/jquery-tiki
+
+jquery-tiki contains legacy tiki js scripts based on jquery (loaded by, or loaded into jquery), that were modernized to compile their dependencies into themselves.  It has a single package.json, and generates multiple .mjs ESM modules.  It's meant to move:
+
+* lib/jquery_tiki/*.js to src/js/jquery-tiki/*.js
+* lib/jquery_tiki/tiki-jquery.js methods to their own files in src/js/jquery-tiki/*.js
+
+It is most certainly NOT a place to put things to auto-compile just because you are too lazy to create a directory and add one line in vite.config.mjs.  
+
+If you care enough about auto-compile that this is an issue for you, write the support to process [package.json main](https://docs.npmjs.com/cli/v11/configuring-npm/package-json#main) and fallback to index.js recursively under src/js in vite.config.mjs
+
+* It should only contain things that are are loaded into jquery, and only depend on common-* or compiled in dependencies.
+* It is tolerated that it contains things that are loaded from jquery (jquery selectors to attach event handlers), so that legacy jquery_tiki modules are as drop in as possible.  
+  * But that is not tolerated for new NOT FOR NEW CODE.  For new code, use [normal addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#examples)
+
+Again, the module just depending on jquery (ex using jquery selectors) or using jquery in some other way (except the above) isn't a reason to put it here!



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/87a11e874b03dff9746f72731bfb115cd80b2e2c

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/87a11e874b03dff9746f72731bfb115cd80b2e2c
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.