Project to generate JS from Gleam
This project uses Docker to:
- run a rust environment to build the latest version of the Gleam compiler
- start a server for the generated JS module.
Start with the command.
docker-compose up
Then visit localhost:5000 Note: Currently output of main is printed in the console.
Gleam code is written in the src
directory.
The funtion main
in src/app.gleam
is the entry point.
To get the latest version of the compiler, update the SHA in build.Dockerfile
and run:
docker-compose build build
- Ideas on how to integrate with a Gleam ecosystem, i.e. libraries and build piplelines.
- Implementation of a stdlib that works in browser.
- Help with integrating with the frontend ecosystem. i.e. snowpack, vite, rollup, svelte, react etc etc