My deps-new template for a minimal re-frame SPA.
It's based on the static repo kees-/t01-rf-template, which edited day8/re-frame-template based on changes I made while creating projects.
However this template can be installed in one command thanks to deps-new!
Make sure Clojure and deps-new are installed.
Run:
clj \
-Sdeps '{:deps {io.github.kees-/re-marfer {:git/tag "0.1.0" :git/sha "7e42a3a"}}}' \
-Tnew create \
:template kees/re-marfer \
:name your/app-namereplacing your/app-name.
Note the additional dash due to my github username in io.github.kees-/re-marfer which isn't in :template kees/re-marfer.
To complete setup,
cd app-name
npm installThen jack in with your code editor, or as a fallback, $ npm run watch and connect to the REPL.
Browse to http://localhost:8280/ to establish the JS runtime and see the initial webpage.
re-frame-10xincluded by defaultre-frameandre-frame-10xupdated- Appropriate files ignored
core.cljsrenamed tomain.cljsevents.cljs,subs.cljs,db.cljscombined intorf.cljsre-frameshortcuts:<sub,<sub-lazy,>evt,>evt-now- JavaScript output folder
jsrenamed to_js - Blank favicon
- Add a CSS reset and a basic CSS file
- Small reformatting and semantic changes