Within the xeto release, allows bunlding js scripts.
Prereq
- npm is installed
- esbuild is installed with npm
npm -g install esbuild
From within the bin directory, run NODE_PATH=$(npm root --quiet -g) ./bin/bundle.js <pod>[::<type>[.<slot>]]
Type and main are optional, when or are left off the resulting bundle will require the Type and Slot to be provided, but the same bundle can access any type or slot in the pod.
For example:
NODE_PATH=$(npm root --quiet -g) ./bundle.js axonsh::Main.main
chmod 777 axonsh.js
./axonsh.js
Or without type and slot
NODE_PATH=$(npm root --quiet -g) ./bundle.js axonsh
chmod 777 axonsh.js
./axonsh.js Main main
Or without slot
NODE_PATH=$(npm root --quiet -g) ./bundle.js axonsh:Main
chmod 777 axonsh.js
./axonsh.js main