Skip to content

Installing ClojureScript development toolsλ︎

ClojureScript conceptual architecture

Follow the Practicalli Clojure - install Clojure tools guide to create a ClojureScript, which requires Java, Clojure and a ClojureScript aware editor.

ClojureScript is specified as a dependency in projects, which contains the language and basic tools for building projects.

Figwheel-main is used to provide a comprehensive tool for building ClojureScript applications and supports REPL driven development and hot-loading of changes in the browser as the code is developed.

practicalli/clojure-deps-edn GitHub repository contains the Clojure CLI user level configuration used in this guide and issues and pull requests can also be made there.

Requirement Description
Java ClojureScript tooling is predominantly written in Java
Clojure CLI Tools for running and working with Clojure & ClojureScript projects
Figwheel-main Build and hot-loading environment for ClojureScript (add library as project dependency)
ClojureScript editor An editor that connects to the ClojureScript REPL and provides language support
Web Browser (Firefox, Chrome, chromium) Host platform for JavaScript

HINT: shadow-cljs can be used instead of Figwheel to manage a ClojureScript projects. Read the Shadow CLJS user guide in detail to understand how to manage projects with this tool.

ClojureScript browser support

ClojureScript uses the Google Closure tools to compile ClojureScript to JavaScript which will run on a wide range of web browsers.

The Google Closure tools removes any code that is never called (dead code) and minimises the remaining code to optimise download speed. The compiler also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.

Last update: March 10, 2023