Create figwheel projectsλ︎
clj-new uses the Leiningen template format and some template developers will include project configuration for Clojure CLI. Each template designer is responsibility as to which project and build tools it supports.
The figwheel-main template provides an option to create a Leiningen or Clojure CLI project and clj-new will create a Clojure CLI configuration by default.
Where a template only provides a Leiningen configuration, dependencies listed in
project.cljshould be added to the
project.cljshould be satisfied by aliases in the project or user-level
ClojureScript project using figwheelλ︎
Use the figwheel-main template to create a ClojureScript project that uses figwheel-main to manage the build.
In a terminal, use the following command:
:project/newalias is defined in practicalli/clojure-deps-edn user-level configuration and supports
Texecution flags. The
-Tflags use a command with key value arguments
clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["+reagent"]'
practicalli/hello-world defines the main application namespace as
practicalli as the domain.
-- after the name tells clj-new to pass the following text to the template.
--reagent is a template option to add reagent React-style library dependencies to the generated project.
--react are other React-style libraries that could be used instead of