Open enricogior opened 8 years ago
It is not documented how the npmjxv311.jx lib is created (npmjxv311.jx is the proxy module used by the "jx npm install" command) The command to create it is:
from the jxcore project root:
cd tools/npmjx/
jx compile npmjx.jxp
How npmjx works is not documented. There are actually two npmjx modules, one is just a proxy module that points to the real npmjx module. When you run the "jx npm install" command, jx.exe executes the lib/jx/_jx_install.js script (that is embedded in jx.exe) that downloads the proxy module using a hardcoded url. The proxy module in turn downloads the real npmjx module (using another hardcoded url). The proxy module contains the tar.gz module that is required to expand the real npmjx module.
There are some problems with the current way this mechanism work: