node-minecraft-data icon indicating copy to clipboard operation
node-minecraft-data copied to clipboard

Implement a method downloading resources at runtime

Open TheDudeFromCI opened this issue 5 years ago • 4 comments

As the scale of Minecraft-Data increases, this can add unneeded size to the node_modules. It would be more efficient to download the required resources as needed at runtime.

This might be done via git, or curl'ing the raw github repo. This data can be cached for future runs, if desired.

TheDudeFromCI avatar Aug 10 '20 12:08 TheDudeFromCI

this should happen at the very beginning (at import time) and be sync.

if anyone wants to make a module for this, feel free. (probably a node-minecraft-data-dynamic repo)

rom1504 avatar Sep 04 '20 15:09 rom1504

actually the whole thing compressed is 2.5MB, I'm not sure if there is any use case here

rom1504 avatar Sep 04 '20 15:09 rom1504

the only thing that could be done to make it faster to download would be to provide .tgz with preinstalled prismarinejs libs

rom1504 avatar Sep 04 '20 15:09 rom1504

maybe downloading the tgz from mcdata tag + https://github.com/nika-begiashvili/libarchivejs

rom1504 avatar Oct 06 '20 20:10 rom1504