[Pkg-javascript-devel] [next] how to bundle files using only the debian installed packages

Yadd yadd at debian.org
Sat Dec 7 13:18:39 GMT 2024


On 12/7/24 14:00, picca wrote:
> Sorry I was not subscriber. Now i am
> 
> So I follow up here:
> 
>> Hi,
> 
>> if you have a package.json with a target that build the bundle (and if
>> dependencies exist in Debian), you can use this:
> 
> I just use libjs-three
> 
>> $ pkgjs-install-minimal
>> $ npm run <bundle-target>
> 
>> Else, you have to build the command using webpack or rollup
> 
> I just have a main.html and a main.js with the javascript code which use 
> three.
> 
> So I would like something which generates from there two files, an html 
> files with everythings bundled inside it.

Maybe simply:
$ mkdir -p build && cp main.html build/ && \
  cat /usr/share/javascript/libjs-three.js main.js >build/main.js




More information about the Pkg-javascript-devel mailing list