Hi, attached is my first draft of packaging htmx.
I don't know js packaging at all, so I kinda guessed.
https://github.com/cyberitsolutions/bootstrap2020/tree/twb/debian-12-PrisonPC.packages/node-htmx.org/debian
Known issues:
* Have to build with DEB_BUILD_OPTIONS=nocheck, because
some test-time dependencies are missing (not in Debian at all)!
* puts files in /usr/share/nodejs, but
apache2 expects /usr/share/javascript!
* creates a .min.js for the main file, but
not any of the auxiliary files!
(I think this is an upstream bug?)
* in the 2.0.0~alpha1 package,
all the auxiliary files are completely missing!
* Makes a connection to registry.npmjs.org during build.
I don't know why. The attacker's command was:
perl -MDebian::PkgJs::SimpleAudit -e print advisories(".")
* The upstream source tarball is 20MB, that seems *way* too big.
(Update: it seems most of this is the embedded copy of https://htmx.org website.)
Lintian complains about a bunch of embedded copies, too:
E: node-htmx.org source: source-is-missing [test/lib/handlebars-v4.7.6.js]
E: node-htmx.org source: source-is-missing [test/lib/morphdom-umd.js]
E: node-htmx.org source: source-is-missing [www/static/node_modules/chai/chai.js]
E: node-htmx.org source: source-is-missing [www/static/node_modules/mocha/mocha.js]
E: node-htmx.org source: source-is-missing [www/static/node_modules/sinon/pkg/sinon.js]
E: node-htmx.org source: source-is-missing [www/static/test/lib/handlebars-v4.7.6.js]
E: node-htmx.org source: source-is-missing [www/static/test/lib/morphdom-umd.js]
E: node-htmx.org source: source-is-missing [www/themes/htmx-theme/static/js/_hyperscript.js]
On Wed 07 Feb 2024 10:15:32 +0530, Joseph Nuthalapati wrote:
> Package: wnpp
> Severity: wishlist
>
> * Package name : libjs-htmx
> Version : 1.9.10
> Upstream Authors : Big Sky Software
> * URL : https://github.com/bigskysoftware/htmx
> * License : 0BSD
> Programming Lang: JavaScript
> Description : A JavaScript library to enhance the features of HTML
>
> HTML has only two elements that communicate with the server - <a> and <form>.
> HTMX allows all elements to send AJAX requests to the server. It also allows DOM
> manipulation by replacing HTML elements with the response from the server. This
> can significantly enhance the user experience of traditional multi-page web
> applications.
> .
> htmx allows you to access AJAX, CSS Transitions, WebSockets and Server Sent
> Events directly in HTML, using attributes, so you can build modern user
> interfaces with the simplicity and power of hypertext.
> .
> htmx has no runtime dependencies. It can be used by web applications written in
> any programming language. The license is Zero-Clause BSD.
Attachment:
node-htmx.org_1.9.10-0PrisonPC1.debian.tar.xz
Description: application/xz