https://github.com/crisward/preact-coffee
Starter template for preact coffee webpack
https://github.com/crisward/preact-coffee
coffeescript coffeescript2 preact starter-template
Last synced: 7 months ago
JSON representation
Starter template for preact coffee webpack
- Host: GitHub
- URL: https://github.com/crisward/preact-coffee
- Owner: crisward
- Created: 2016-06-21T17:27:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T22:31:16.000Z (over 3 years ago)
- Last Synced: 2025-04-09T03:06:18.260Z (about 1 year ago)
- Topics: coffeescript, coffeescript2, preact, starter-template
- Language: CoffeeScript
- Homepage:
- Size: 1.02 MB
- Stars: 13
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://preactjs.com)
## 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
```bash
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.