Skip to content

Commit ab0c729

Browse files
committed
updates for current clj cli
- Splits :main-opts into individual vector entries - Changes README to use `-M` - Changes README to say how to open prod build - Add generated files to .gitignore
1 parent e554c44 commit ab0c729

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.cpcache
2+
target
3+
resources/public/js/

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
To start Figwheel, open `src/cljs/myapp/core.cljs` in Emacs and type <b>`C-c C-x j s`</b>
22

3-
Or start from a terminal by typing <b>`clj -A:figwheel`</b>
3+
Or start from a terminal by typing <b>`clj -M:figwheel`</b>
44

5-
For production run <b>`clj -A:prod`</b>
5+
For production run <b>`clj -M:prod`</b> then open the `resources/public/index.html` file in a browser to run.

deps.edn

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
44
org.clojure/clojurescript {:mvn/version "1.10.773"}
5-
reagent {:mvn/version "1.0.0"}}
5+
reagent/reagent {:mvn/version "1.0.0"}}
66

77

88
:aliases
99
{:prod
10-
{:main-opts ["-m cljs.main -co prod.cljs.edn -c myapp.core"]}
10+
{:main-opts ["-m" "cljs.main" "-co" "prod.cljs.edn" "-c" "myapp.core"]}
1111

1212

1313
:cider
@@ -18,4 +18,4 @@
1818
:figwheel
1919
{:extra-paths ["resources"]
2020
:extra-deps {com.bhauman/figwheel-main {:mvn/version "0.2.12"}}
21-
:main-opts ["-m figwheel.main -b dev -r"]}}}
21+
:main-opts ["-m" "figwheel.main" "-b" "dev" "-r"]}}}

0 commit comments

Comments
 (0)