Skip to content

Commit

Permalink
release 0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed May 26, 2020
1 parent 42cc46b commit 1db5310
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 44 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 0.2.6 Further NPM support for the new :bundle target

Got extra-mains and auto-testing up and running along with a new
intial docs page https://figwheel.org/docs/npm.html to help get
started with an NPM based ClojureScript project.

* Added templating to `:bundle-cmd` cljs option: it interpolates `:output-to` and `:final-output-to`
* `:bundle-cmd` only bundles one time when watching and compiling
* set the fighweel option `:bundle-once` to `false` to have bundling occur on every compile
* set the fighweel option `:final-output-to` if you don't want the default of `:output-to` + "_bundle"
* logs the bundle command when it runs for easier debugging

# 0.2.5 Much better NPM support with new CLJS :bundle target

> support for the new :bundle target requires clojurescript >= 1.10.764
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ On Mac OSX with brew:
Now launch a ClojureScript REPL with:

```
clj -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.5\"}}}}" -m figwheel.main
clj -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.6\"}}}}" -m figwheel.main
```

This will first compile browser REPL code to a temp directory, and
Expand All @@ -224,7 +224,7 @@ available. So, you can get Rebel Readline behavior by simply adding it
to your dependencies.

```
clojure -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.5\"} com.bhauman/rebel-readline-cljs {:mvn/version \"0.1.4\"}}}}" -m figwheel.main
clojure -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.6\"} com.bhauman/rebel-readline-cljs {:mvn/version \"0.1.4\"}}}}" -m figwheel.main
```

As of right now using Rebel readline does create some startup overhead
Expand All @@ -245,7 +245,7 @@ directory of your project.
Ensure your `deps.edn` file has the `figwheel.main` dependencies:

```clojure
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.5"}
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
;; setup some development paths
:paths ["src" "target" "resources"]
Expand Down Expand Up @@ -311,7 +311,7 @@ directory of your project.
Ensure your `project.clj` file has `figwheel.main` dependencies:

```clojure
:dependencies [[com.bhauman/figwheel-main "0.2.5"]
:dependencies [[com.bhauman/figwheel-main "0.2.6"]
[com.bhauman/rebel-readline-cljs "0.1.4"]]
;; setup target as a resource path
:resource-paths ["target" "resources"]
Expand Down Expand Up @@ -449,7 +449,7 @@ ClojureScript searches for source files on the Classpath. When you add
a `re-frame` dependency like so:

```clojure
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.5"}
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
;; adding re-frame
re-frame {:mvn/version "1.10.5"}}
Expand Down
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
;; DEV for now its easier to use cider with top level deps
;; com.bhauman/figwheel-core {:local/root "/Users/bhauman/workspace/figwheel/figwheel-core"}
;; com.bhauman/figwheel-repl {:local/root "/Users/bhauman/workspace/figwheel/figwheel-repl"}
com.bhauman/figwheel-repl {:mvn/version "0.2.6-SNAPSHOT"}
com.bhauman/figwheel-core {:mvn/version "0.2.6-SNAPSHOT"}
com.bhauman/figwheel-repl {:mvn/version "0.2.6"}
com.bhauman/figwheel-core {:mvn/version "0.2.6"}

;; server
ring {:mvn/version "1.7.1"}
Expand Down
10 changes: 5 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ On Mac OSX with brew:
Now launch a ClojureScript REPL with:

```
clj -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.5\"}}}}" -m figwheel.main
clj -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.6\"}}}}" -m figwheel.main
```

This will first compile browser REPL code to a temp directory, and
Expand All @@ -224,7 +224,7 @@ available. So, you can get Rebel Readline behavior by simply adding it
to your dependencies.

```
clojure -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.5\"} com.bhauman/rebel-readline-cljs {:mvn/version \"0.1.4\"}}}}" -m figwheel.main
clojure -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.2.6\"} com.bhauman/rebel-readline-cljs {:mvn/version \"0.1.4\"}}}}" -m figwheel.main
```

As of right now using Rebel readline does create some startup overhead
Expand All @@ -245,7 +245,7 @@ directory of your project.
Ensure your `deps.edn` file has the `figwheel.main` dependencies:

```clojure
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.5"}
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
;; setup some development paths
:paths ["src" "target" "resources"]
Expand Down Expand Up @@ -311,7 +311,7 @@ directory of your project.
Ensure your `project.clj` file has `figwheel.main` dependencies:

```clojure
:dependencies [[com.bhauman/figwheel-main "0.2.5"]
:dependencies [[com.bhauman/figwheel-main "0.2.6"]
[com.bhauman/rebel-readline-cljs "0.1.4"]]
;; setup target as a resource path
:resource-paths ["target" "resources"]
Expand Down Expand Up @@ -449,7 +449,7 @@ ClojureScript searches for source files on the Classpath. When you add
a `re-frame` dependency like so:

```clojure
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.5"}
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
;; adding re-frame
re-frame {:mvn/version "1.10.5"}}
Expand Down
10 changes: 5 additions & 5 deletions docs/assets/compiled/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/docs/classpaths.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Let's add the `cljs-src` path to our classpath with CLI Tools. In your
```clojure
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.2.5"}
com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
:aliases {:fig {:main-opts ["-m" "figwheel.main"]}}
;; define paths here
Expand Down Expand Up @@ -256,7 +256,7 @@ Edit `deps.edn`:
```clojure
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.2.5"}
com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
:aliases {:fig {:main-opts ["-m" "figwheel.main"]}
;; add "resources" path here
Expand Down Expand Up @@ -383,7 +383,7 @@ This is just a simple matter as we just need to add `"target"` to the
```clojure
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.2.5"}
com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
:aliases {:fig {:main-opts ["-m" "figwheel.main"]}
;; add "target" path here
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/code_splitting.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ touch deps.edn
Edit this script to look like the following:

```clojure
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.5"}}
{:deps {com.bhauman/figwheel-main {:mvn/version "0.2.6"}}
:paths ["src" "resources" "target"]}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/create_a_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The contents of the `deps.edn` file should be:
```clojure
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.2.5"}
com.bhauman/figwheel-main {:mvn/version "0.2.6"}
com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}}
:aliases {:fig {:main-opts ["-m" "figwheel.main"]}}
:paths ["src" "resources" "target"]}
Expand All @@ -57,7 +57,7 @@ If you're using Leiningen your `project.clj` should be:
:profiles
{:dev
{:dependencies [[org.clojure/clojurescript "1.10.339"]
[com.bhauman/figwheel-main "0.2.5"]
[com.bhauman/figwheel-main "0.2.6"]
;; optional but recommended
[com.bhauman/rebel-readline-cljs "0.1.4"]]
:resource-paths ["target"]
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/emacs.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ would look like this:
```clojure
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/clojurescript {:mvn/version "1.10.339"}
com.bhauman/figwheel-main {:mvn/version "0.2.5"}}
com.bhauman/figwheel-main {:mvn/version "0.2.6"}}
:paths ["src" "resources" "target"]}
```

Expand Down
Loading

0 comments on commit 1db5310

Please sign in to comment.