Build client apps with esbuild and typescript without any node_modules folder. Files are downloded from https://esm.sh/package_name@version on the fly and built everytime.
go install github.com/scriptmaster/emerald-esbuild@latest
This installs to $GOPATH/bin dir. Ensure GOPATH was set to $HOME/go and
$GOPATH/bin was added to your PATH env var.
- Install go:
https://go.dev/doc/install - Usually,
GOROOTis/usr/local/goandGOPATHis$HOME/gofor user packages. Do,go envto list GOROOT and GOPATH.
After go install was successful.
emerald-esbuild
on an empty directory to start building files.
emerald-esbuildis a wrapper on esbuild api.- It transforms the entrypoint
app/main.tsxand any imports within it (downloads via its aliases in importmap.json) and bundles intodist/main.jsanddist/main.css