crisward / preact-coffee

Starter template for preact coffee webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preact Coffee

A quick starter template for Preact using CJSX, coffee-script with JSX. This project is setup to use preact compat, so all the files look like we're using react.

Why?

I like coffeescript, React, and small build files. Find our more about preact here

How to use

git clone https://github.com/crisward/preact-coffee.git
cd preact-coffee
npm install
npm run watch
open index.html

Npm Scripts

npm run watch # watch coffee & cjsx files and rebuild on change
npm run build # build and minify js file

Recent Updates

Uses latest version of Preact, so hooks, fragment etc are available.

About

Starter template for preact coffee webpack


Languages

Language:CoffeeScript 52.1%Language:JavaScript 43.7%Language:HTML 4.2%