Skip to content

Commit

Permalink
figwheel: create project from template command
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalli-johnny committed Jan 21, 2024
1 parent 1f6c42e commit 81a5b76
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/figwheel-project/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ In this section we will create a ClojureScript project using Figwheel to manage
* [Serving assets](serving-assets.md)
* [Using the REPL](using-the-repl.md)

> **Hint** Once you have understood the basics of figwheel, you can use a Leinigen template to automatically create a project structure and build configuration file.

> It is important to understand how Figwheel works, so its easy to change the project build file should you need to.
> Understanding how Figwheel works provides clarity should a change to the project build file be required

The figwheel-main template will create the configuration files and directory structure for a project, including a simple working app.

=== "Practicalli Clojure CLI Config"
`:project/create` alias is provided by [Practicalli Clojure CLI Config](https://practical.li/clojure/clojure-cli/practicalli-config/) and uses the [deps-new]() tool to create projects, optionally with [Practicalli Project Templates](https://practical.li/clojure/clojure-cli/projects/templates/practicalli/)

Create a new project using the [`practicalli/landing-page` template](https://practical.li/clojure/clojure-cli/projects/templates/practicalli/landing-page/){target=_blank}.

```shell
clojure -T:project/create :template practicalli/landing-page :name practicalli/website-name
```

`src/practicalli/landing_page.clj` is the main ClojureScript source code file which is used to generate the JavaScript app loaded into the browser.

0 comments on commit 81a5b76

Please sign in to comment.