SWDEV
Runtime transfome by Service Worker and Deno(PoC).
How to use
# install
$ deno install -qAf --unstable https://deno.land/x/swdev/swdev.ts
$ swdev init myapp
$ cd myapp
$ swdev serve
CAUTION: port:7777 register service-worker. Unregister service-worker after develop.
Concepts
- Transform and cache in service-worker (
typescript
andsvelte
) - Cache bursting by file change event
- Safe file read / write by
deno
permissions - Use deno semantics in frontend
- Bundle for production
Install
$ swdev init swdev-app
$ cd swdev-app
$ swdev serve
Release
## Build entry point
$ swdev build main.tsx #=> main.bundle.js
## Deploy assets
# netlify deploy --prod -d .
TODO
- Generate importmaps
- Plugin system
- Inline Editor
- Extract rollup-deno-plugin
- Refactor: deps.ts
LICENSE
MIT