Overview
The figwheel.main template is a tool that generates a minimal ClojureScript project with figwheel.main tooling. It is designed to work with both Leiningen and clj-new, and it includes the ClojureScript React framework. This template allows you to quickly set up a ClojureScript project without any unnecessary frills.
Features
- Generates a minimal ClojureScript project
- Includes figwheel.main tooling
- Works with both Leiningen and clj-new
- Supports the ClojureScript React framework
- Allows customization with framework and attribute options
- Provides an interactive development environment with ClojureScript REPL
- Enables running tests from the command line or with lein
Installation
To use the figwheel.main template, make sure you have the latest version of the Clojure CLI tools or Leiningen installed. Additionally, ensure that you have clj-new installed for the clj-new option.
Using clj-new:
clj -Sdeps '{:deps {seancorfield/clj-new {:mvn/version "1.1.276"*/}}}' \
-m clj-new.create /path/to/template/figwheel.main yourname/hello-world \
-- --framework react
Using Leiningen:
lein new figwheel-main yourname/hello-world \
-- --framework react
Summary
The figwheel.main template is a simple and efficient way to create a ClojureScript project with figwheel.main tooling. It supports both Leiningen and clj-new and includes the ClojureScript React framework. With this template, you can quickly set up a project and start developing with an interactive environment and live testing capabilities.