Skip to content

yisar/deku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deku

No-bundle Dev Server for morden ES modules.

Build Status tag license tag

Install

deno install -A --unstable 'https://deno.land/x/deku/mod.ts'

Use

$ deku create <project-name> // create a fre app
$ cd <project-name>
$ deku install // install modules from deku.json
$ deku // run

Hot reload

  • Js(x)

There are two kinds of js, one is fre component, another is function.

And component will rerender, function will cause reload.

So, it's better that one component into one file, rather than maxing.

  • Css

There are also two kinds of style, one is in fre component, another is inline html.

In the component, use css-in-js libraries, or add link to index.html, both them will rerender.

Todo

  • hot reload

  • cli

How is this different form viet or pika?

This is for Fre but not Vue, and use deno instead of node without node_modules.

This use deno compiler for compiling JSX instead of vue compiler.

So, no bundle, no JSX compiler, no node……

License

MIT ©yisar inspired by vite.