Skip to content

About

ClojureScript + Electron + Figwheel + Reagent = ❤❤❤

Topics

Resources

Stars

595 stars

Watchers

26 watching

Forks

Repository files navigation

License Build

Clojurified Electron

My attempt to recreate ClojureScript development workflow while developing desktop apps with electron.

What is currently included

  • ClojureScript (init script and ui code)
  • Figwheel for interactive development
  • Reagent for UI
  • Advanced compilation with externs inference in release compilation targets

Running it

npm install electron -g # install electron binaries

Terminal

lein cooper                      # compile cljs and start figwheel
electron .                       # start electron from another terminal

Emacs REPL

lein cljsbuild once

M-x cider-jack-in-cljs figwheel

electron .

Releasing

lein do clean, cljsbuild once frontend-release, cljsbuild once electron-release
electron . # start electron to test that everything works

After that you can follow distribution guide for the electron.

The easiest way to package an electron app is by using electron-packager:

npm install electron-packager -g                                            # install electron packager
electron-packager . HelloWorld --platform=darwin --arch=x64 --electron-version=1.4.8 # package it!

About

ClojureScript + Electron + Figwheel + Reagent = ❤❤❤

Topics

Resources

Stars

595 stars

Watchers

26 watching

Forks

Releases

Packages

Used by

Contributors

Languages