Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ivanminutillo/reagent-shadow-oz-e…
Browse files Browse the repository at this point in the history
…xample
  • Loading branch information
bernini committed May 8, 2019
2 parents 8135330 + a16eb2d commit d903eba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# A pretty basic example of reagent + Oz
# A basic example of reagent + shadow-cljs + Oz setup

Oz + Reagent + shadow-cljs simplest example
Following [this issue](https://github.com/metasoarous/oz/issues/64), the relevant changes to get Oz working with shadow-cljs are:

Relevant changes to get Oz working with shadow-cljs are:

1. [Vega required cljsjs shim files](https://github.com/ivanminutillo/reagent-shadow-oz-example/tree/master/src/cljsjs)
2. [es6 compiler options on shadow-cljs.edn](https://github.com/ivanminutillo/reagent-shadow-oz-example/blob/master/shadow-cljs.edn#L14)
3. [Vega dependencies on package.json](https://github.com/ivanminutillo/reagent-shadow-oz-example/blob/master/package.json#L25)
1. [Create a cljsjs folder with the required vega shim files](https://github.com/ivanminutillo/reagent-shadow-oz-example/tree/master/src/cljsjs)
2. [Add es6 compiler options on shadow-cljs.edn](https://github.com/ivanminutillo/reagent-shadow-oz-example/blob/master/shadow-cljs.edn#L14)
3. [Install Vega dependencies on package.json](https://github.com/ivanminutillo/reagent-shadow-oz-example/blob/master/package.json#L25)

## Usage
Clone the demo
Expand Down
2 changes: 1 addition & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:dependencies [[binaryage/devtools "0.9.10"]
[proto-repl "0.3.1"]
[metasoarous/oz "1.5.0"]
[metasoarous/oz "1.6.0-alpha2"]
[reagent "0.8.1"]]

:nrepl {:port 3333}
Expand Down

0 comments on commit d903eba

Please sign in to comment.