End Users this project is not for you.
With webly you can build clj/cljs web apps (server: clj, frontend: reagent/reframe)
webly uses great tools such as: reagent, reframe, tailwind-css, shadow-cljs
webly brings a things that can be hard to configure (or repetitive) when you develop a web app such as:
Clone this repo and run:
lein webly npm-install
lein prep-res
lein webly watch ; The demo runs a webserver on port 8000. "shadow-cljs watch" mode
The source code of the demo is in profiles/demo.
If this was your app, after you are finished developing it, you might compile it:
lein webly compile ; Build cljs bundle, and output bundle stats
lein webly jetty ; Serves website from precompiled bundle.
lein webly release ; Build cljs bundle, and output bundle stats. no tenx. no source-maps
lein webly jetty ; Serves website from precompiled bundle.
Bidi is not as highly starred as compojure, but it has important benefits:
To start webly you have to pass it two parameter: profile and config
Webly profile can be one of the following strings:
Webly config:
lein webly npm-install
and npm outdated
to see if there are newer versions availableAdd npm dependencies that you want to use into a clojure deps.cljs
{:npm-deps
{; font awesome
"@fortawesome/fontawesome-free" "^5.13.0"
Sometimes github repo and npm module do not match. Check this to see what goes on: https://unpkg.com/@ricokahler/oauth2-popup-flow@2.0.0-alpha.1/index.js
lein webly ci
npm test
(this script is auto created when your package.json get auto created)lein test-clj ; Run unit tests - clj
lein test-js ; Run unit tests - js
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close