Scaffold
Installation
Clone the repo
git clone git@github.com:codemonkey76/scaffold_gleam
Compile the program into an executable
cd scaffold_gleam
gleam run -m gleescript
Move to somewhere in your path, e.g. /usr/local/bin
sudo mv scaffold_gleam /usr/local/bin/scaffold
Running the app
Start a new gleam repo
gleam new my_application
Configure as javascript target
Edit your gleam.toml and add target = "javascript"
Create the scaffolding, run from the root of your new project
scaffold
npm install
Then run the watcher
npm run watch
then visit http://localhost:1234 on your browser
Further documentation can be found at https://hexdocs.pm/scaffold_gleam.