Clone this repo to some filesystem that has go
setup. All commands below
are from the project root.
Make sure that you have setup your $GOPATH correctly then run:
go get github.com/tamoore/esbx
To update the build binary
go get -u github.com/tamoore/esbx
After install the binary above:
esbx --entrypoint ./src/app.jsx
A file named build/app.js
should now be present on the file system.
Once you have successfully built the output run:
node out.js
This will verify that it has been built correctly
Using watchexec
a watched build is incredibly fast:
watchexec -w ./src 'esbx -entrypoint ./src/app.jsx'