Skip to content

Commit

Permalink
figwheel: update project links, add practicalli project template example
Browse files Browse the repository at this point in the history
Signed-off-by: Practicalli Johnny <[email protected]>
  • Loading branch information
practicalli-johnny authored Oct 1, 2024
1 parent dde35c6 commit 83a84f1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/figwheel-workflow/create-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,19 @@ In a terminal, use the following command:
clojure -M:project/new figwheel-main practicalli/hello-world -- --reagent
```

> The `:project/new` alias is defined in [practicalli/clojure-deps-edn user-level configuration](https://practical.li/clojure/clojure-cli/install/community-tools.html) and supports `-M`, `-X` and `T` execution flags.
> The `-X` and `-T` flags use a command with key value arguments
>
> `clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["+reagent"]'`
??? HINT ":project/new alias"
The `:project/new` alias is defined in [Practicalli Clojure CLI config](https://practical.li/clojure/clojure-cli/practicalli-config/) and supports `-M`, `-X` and `T` execution flags.
The `-X` and `-T` flags use a command with key value arguments. Strings and Clojure data structures (vector, hash-map) should be surrounded with single quotes
```shell
clojure -T:project/new :template figwheel-main :name practicalli/landing-page :args '["+reagent"]'
```

!!! HINT "Practicalli Templates - Landing page"
[Practicalli Templates](https://practical.li/clojure/clojure-cli/projects/templates/practicalli/) includes a `:template/landing-page` template that creates a working landing page ClojureScript project with figwheel-main.
```shell
clojure -T:project/create :template practicalli/landing-page :name practicalli/landing-page
```
The `:project/create` alias is defined in [Practicalli Clojure CLI config](https://practical.li/clojure/clojure-cli/practicalli-config/)


The `practicalli/hello-world` defines the main application namespace as `hello-world` and `practicalli` as the domain.
Expand Down

0 comments on commit 83a84f1

Please sign in to comment.