[Javascript Announcement] New modular javascript for development

10 views
Skip to first unread message

Oscar Levin

unread,
Jun 16, 2026, 8:42:56 AM (4 days ago) Jun 16
to PreTeXt development
For everyone contributing to PreTeXt's javascript: 

There is a new structure to how we will manage the PreTeXt javascript provided by PreTeXt.  Mirroring Andrew's work for the CSS, we now build/minify the js so we can include a single `pretext-core.js` instead of the three files `pretext.js`, `pretext_add_on.js` and `knowl.js`.  Details are in the README in the `js` folder, and in the PR: https://github.com/PreTeXtBook/pretext/pull/2919.

Next steps will be to move more of the js to `js/src` and split up the add_on file to make more sense.  I will also probably set up a convenience function for the CLI to just rebuild the javascript (like the `--theme` flag used for css).   Help with any of these would be gladly accepted (including suggestions/feedback).  

But mostly, if you want to work on the javascript, be aware that there is now a build step.

Oscar.

David W. Farmer

unread,
Jun 16, 2026, 9:16:56 AM (4 days ago) Jun 16
to PreTeXt development

I'll be glad to see the end of add_on.js

That little convenience/short-sightedness lasted a long time!
> --
> You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/47fa99a1-bf3e-4401-945b-3e2b163ee323n%40googlegroups.com.
>
>

Rob Beezer

unread,
Jun 16, 2026, 11:19:49 PM (4 days ago) Jun 16
to prete...@googlegroups.com
You and me both! ;-) Thanks for all your pioneering work on the CSS and JS! -Rob
Reply all
Reply to author
Forward
0 new messages