Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clojurephant/sample-clojurephant-cljs-app
Sample project using clojurephant to build a ClojureScript app.
https://github.com/clojurephant/sample-clojurephant-cljs-app
clojurephant clojurescript gradle
Last synced: 13 days ago
JSON representation
Sample project using clojurephant to build a ClojureScript app.
- Host: GitHub
- URL: https://github.com/clojurephant/sample-clojurephant-cljs-app
- Owner: clojurephant
- Created: 2022-07-18T01:34:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T02:59:57.000Z (over 2 years ago)
- Last Synced: 2023-02-27T03:16:36.316Z (over 1 year ago)
- Topics: clojurephant, clojurescript, gradle
- Language: Clojure
- Homepage: https://clojurephant.dev
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sample-clojurephant-cljs-app
Sample project using [clojurephant](https://github.com/clojurephant) to build a ClojureScript app.
## Usage
Start the nREPL server:
$ ./gradlew clojureRepl
NOTE: REPL support for CLJS is in a rough state right in 0.7.0.
Connect to the nREPL server with your client/editor of choice and start the Figwheel REPL.
user => (do
(require '[cljs.build.api])
(require '[figwheel.repl])
(require '[cider.piggieback])
(let [opts {:optimizations :none
:main 'my.group.myapp
:output-to "build/tmp/clojureRepl/public/js/main.js"
:output-dir "build/tmp/clojureRepl/public/js/out"
:asset-path "js/out"
:source-map true}]
(cljs.build.api/build opts)
(cider.piggieback/cljs-repl (figwheel.repl/repl-env) opts)))NOTE: This only uses the `figwheel-repl` component not the full `figwheel-main`. This means you don't get the hot-reloading Figwheel normally provides, but do get it's other REPL capabilities.
## More Help
See [Clojurephant's docs](https://clojurephant.dev).