nmichel / clj-cljs-cradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clojure/ClojureScript Cradle

This project aims at helping newcomers in Clojure/ClojureScript world.

It provides basic configurations for both sides and is easy to derive into a real project file.

It is gross but its goal is to help a true beginner to be playing around in no time.

Hope it helps, though.

Build your sandbox project

Clone/Copy the project and adapt it to your needs :

  • modify project.clj
    • add your dependencies
    • add your foreign libs
    • ...
  • add your .clj/.cljs files
  • add your resources
  • ...

REPL

Launch 2 different REPL in two different shells (e.g. gitbash)

Clojure

$> lein with-profile +clj repl

Or, using project defined alias

$> lein clj-repl

ClojureScript

With cljsbuild in "auto" mode

$> lein with-profile +cljs cljsbuild auto client-prod

With figwheel for interactive development

$> lein with-profile +cljs figwheel client-dev

Or, using project defined alias

$> lein cljs-fig

Build

Clojure

$> lein clj uberjar

ClojureScript

With cljsbuild

$> lein with-profile +cljs cljsbuild once client-prod

Or, using project defined alias

$> lein cljs-build

About


Languages

Language:Clojure 82.6%Language:HTML 16.2%Language:CSS 1.2%