Initial experiments with the prebuild-ui
In the project directory, you can run:
Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
The app uses Reagent, a minimalistic interface between ClojureScript and React.
You can use existing npm React components directly via a interop call.
It uses Re-Frame for state management
The re-frame-10x debugging dashboard for re-frame is installed by default for dev.
Ctl-h
will hide or show the dashboard.
Also included is the Omnyway open source library refn that adds some syntactic wrappers for defining and subscribing re-frame events. It also adds mechanisms for using the re-frame app-db for caching large resultsets from db accesses.
Builds use Shadow CLJS for maximum
compatibility with NPM libraries. You'll need a Java
SDK (Version 8+, Hotspot) to use it.
You can
import npm
libraries using
Shadow CLJS. See the user
manual for more
information.
Builds the app for production to the dist
folder.
It correctly bundles all code and optimizes the build for the best performance.
Your app is ready to be deployed!
yarn lint
checks the code for known bad code patterns using clj-kondo.
yarn format
will format your code in a consistent manner using zprint-clj.
Make a report of what files contribute to your app size.
Consider code-splitting or using smaller libraries to make your app load faster.
Starts a Shadow CLJS background server.
This will speed up starting time for other commands that use Shadow CLJS.
Released under MIT License
Copyright 2021 Robert Berger and Omnyway Inc.