Comparing version 1.8.0-beta to 1.8.0
{ | ||
"name": "lumo-cljs", | ||
"version": "1.8.0-beta", | ||
"version": "1.8.0", | ||
"description": "Fast, cross-platform, standalone ClojureScript REPL", | ||
@@ -5,0 +5,0 @@ "author": |
@@ -49,2 +49,8 @@ <img src="./logo/full.png" alt="lumo logo" title="lumo" align="right" width="150" height="150" /> | ||
If you get a [permission failure](https://github.com/anmonteiro/lumo/issues/206), try this: | ||
``` | ||
$ npm install -g lumo-cljs --unsafe-perm | ||
``` | ||
_Note: the installed binary will be named `lumo` rather than `lumo-cljs`_ | ||
@@ -98,20 +104,12 @@ | ||
The Lumo compiler is completely asynchronous whereas the ClojureScript compiler | ||
is sync. This means that you can pass a callback in: | ||
The following example also shows how to use multiple source folders. | ||
```clojure | ||
(require '[lumo.build.api :as api]) | ||
(require '[lumo.build.api :as b]) | ||
(api/build | ||
(api/inputs "src1" "src2") ;; variadic | ||
{:output-to "out/main.js"} | ||
(fn [result] | ||
(if-let [err (:error result)] | ||
(println (.-stack err)) | ||
(do-something-else result)))) | ||
(b/build | ||
(b/inputs "src1" "src2") ;; variadic | ||
{:output-to "out/main.js"}) | ||
``` | ||
The above example also shows how to use multiple source folders. The compiler | ||
returns a map containing an `:error` key if something went wrong. | ||
## Building | ||
@@ -118,0 +116,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
16648
199