/reaml-opinionated-starter

An Opinionated Starter for Reaml which includes Preact, TypeScript, TailwindCSS, Relude, PurgeCSS. Live Demo: https://reaml-opinionated-starter.netlify.com

Primary LanguageOCaml

Reaml Opinionated Starter Build

An Opinionated Starter for Reaml which includes some packages I frequently use:

  1. Preact, a lighter, faster replacement for React.
  2. TypeScript, for when you need to write typesafe code to interop with.
  3. TailwindCSS, a utility-first CSS framework.
  4. Relude, a more powerful standard library for BuckleScript.
  5. PurgeCSS, to remove unused TailwindCSS classes.

The total size of the generated HTML + JS + CSS of this app is 8kB gzipped.

$ cat dist/* | gzip | wc -c
    7948

Setup

$ yarn install

Development

This will start bsb, parcel, tsc in watch mode:

$ yarn start

Production

This will build HTML/JS/CSS files into dist/:

$ yarn build

License

MIT