Luath
For Deno front-end developers who like it fast
Table of Contents
Overview
Luath is a WIP project for providing fast front-end development tooling in Deno.
Installation
Luath can be used either through a command line interface (CLI) or through it’s JavaScript API.
CLI
To install the CLI run:
deno install -f -q -A --unstable https://deno.land/x/luath@0.2.1/luath.ts
And follow any suggestions to update your PATH
environment variable.
You can then use the CLI to serve your application, just provide the directory to your index.html
.
luath serve --port 4000 ./examples/vanilla
JavaScript API
You can import Luath straight into your project for providing a development server:
import { server } from "https://deno.land/x/luath@0.2.1/mod.ts";
await server();
Examples
To run the examples:
Clone the Luath repo locally:
git clone git://github.com/cmorten/luath.git --depth 1 cd luath
Install the Luath CLI:
deno install -f -q -A --unstable https://deno.land/x/luath@0.2.1/luath.ts
Then run the desired example by navigating to the directory and running the Luath
serve
command:cd examples/react luath serve ./ -c
Open http://localhost:3000 in a browser
Start editing the example files and keep and an eye on the browser
Contributing
License
Luath is licensed under the MIT License.
Derived works include vite and wmr. The plan is to attribute specific segments in the appropriate files, but for now their licenses can be found in the root of this repository.