#`create-gleam`, a template for Gleam web apps with TypeScript and Vite

1 messages · Page 1 of 1 (latest)

barren coral
#

Just like how create-vite (running npm create vite) scaffolds a web app with the framework of your choice, create-gleam scaffolds a web app using Gleam and TypeScript.

$ npm create gleam (or pnpm / yarn)

Features include,

  • Vite (bundling, minification, plugins, dev server)
  • TypeScript support (customizable to any lang that compiles to JS)
  • Importing of Gleam files from TS/JS
  • basically if gleam can do it and it's written in JS, it can be done

Currently it's a work in progress and there is only one template which just uses typescript and gleam to create an app but later I am planning on add a couple more such as:

  • create a gleam library template using (optionally) TypeScript and allowing the use of node packages which will be bundled in the library
  • potentially look on https://packages.gleam.run to see what frameworks/framework bindings are there and create templates for that.
  • tailwind bundled and minified without a cdn

The template is pretty customizable right now. What ever one could do with Vite should be possible with it.
also I'm hoping in the future I can figure out how to get type information from the generated .d.ts files when importing from a .gleam file

winged prism
#

Whoa

little nexus
#

hype

#

typo: you said create vite instead of create gleam

barren coral
#

:o tyty

#

if all goes well 4 new templates with some more options will be coming out tomorrow.
one from every framework library i can find on https://packages.gleam.run and one for creating a gleam library

barren coral
little nexus
#

what bout lustre?

barren coral
#

that is one of them in the works

barren coral
barren coral
#

version 0.2.0 adds two frameworks (unfortunately libraries dont work just yet)

#

here's how quick it is to get it set up