Permalink
Browse files

Cljs 1.9.183 (#99)

* version 2.3.0 cljs-repo from https

* upgrade cljs 1.9.183 and om alpha41

* [clojure]fix deps management
  • Loading branch information...
viebel committed Aug 15, 2016
1 parent 371f229 commit 6cedcf6742bccc8a05784bb35be1a51b80c9bea9
View
@@ -18,13 +18,13 @@ http://localhost:5014/index-dbg.html?cljs_in.gist=viebel/547e5236f52cf3ba04f9cbc
;; test.check
-http://localhost:5014/index-dbg.html?cljs_in=(ns%20my.user%0A%20%20(%3Arequire%20%5Bclojure.test.check%20%3Aas%20tc%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%5Bclojure.test.check.generators%20%3Aas%20gen%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%5Bclojure.test.check.properties%20%3Aas%20prop%20%3Ainclude-macros%20true%5D))%0A%0A(def%20sort-idempotent-prop%0A%20%20(prop%2Ffor-all%20%5Bv%20(gen%2Fvector%20gen%2Fint)%5D%0A%20%20%20%20(%3D%20(sort%20v)%20(sort%20(sort%20v)))))%0A%0A(tc%2Fquick-check%20100%20sort-idempotent-prop)%0A&eval_only=1&external-libs=%5Bhttps%3A%2F%2Fraw.githubusercontent.com%2Fviebel%2Ftest.check%2Fmaster%2Fsrc%2Fmain%2Fclojure%2F%5D
+http://localhost:5014/index-dev.html?cljs_in=(ns%20my.user%0A%20%20(%3Arequire%20%5Bclojure.test.check%20%3Aas%20tc%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%5Bclojure.test.check.generators%20%3Aas%20gen%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%5Bclojure.test.check.properties%20%3Aas%20prop%20%3Ainclude-macros%20true%5D))%0A%0A(def%20sort-idempotent-prop%0A%20%20(prop%2Ffor-all%20%5Bv%20(gen%2Fvector%20gen%2Fint)%5D%0A%20%20%20%20(%3D%20(sort%20v)%20(sort%20(sort%20v)))))%0A%0A(tc%2Fquick-check%20100%20sort-idempotent-prop)%0A&eval_only=1&external-libs=%5Bhttps%3A%2F%2Fraw.githubusercontent.com%2Fviebel%2Ftest.check%2Fmaster%2Fsrc%2Fmain%2Fclojure%2F%5D
;; print emoji - klipse first contact
http://localhost:5014/index-dbg.html?cljs_in.gist=viebel/98451d9c3ee2a5cf70fcce52e67e574d
;;color-loop
-http://localhost:5014/index-dbg.html?cljs_in.gist=viebel/820f672dd176169fd831c7748e6f3cd3
+http://localhost:5014/index-dev.html?cljs_in.gist=viebel/820f672dd176169fd831c7748e6f3cd3
;; cljs-date
(ns my.date
(:require [cljs-time.core :as t :refer [interval date-time in-minutes]]))
View
@@ -1,14 +1,14 @@
-(defproject klipse "2.2.1"
+(defproject klipse "2.3.0"
:description "Cljs compiler in cljs"
:dependencies [[org.clojure/clojure "1.8.0"]
- [org.clojure/clojurescript "1.9.93"]
+ [org.clojure/clojurescript "1.9.198"]
[org.clojure/core.async "0.2.385"]
[im.chit/purnam "0.5.2"]
[cljsjs/markdown "0.6.0-beta1-0"]
[cljs-http "0.1.41"]
[viebel/gadjett "0.1.13"]
- [org.omcljs/om "1.0.0-alpha36"]
- [replumb "0.2.3"]
+ [org.omcljs/om "1.0.0-alpha41"]
+ [replumb "0.2.4-SNAPSHOT"]
[fipp "0.6.5"]
[rewrite-cljs "0.4.1"]
[com.cemerick/url "0.1.1"]
@@ -16,7 +16,7 @@
</div>
<div id="compiler" style="height: 100%;"></div>
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
- <script src="dev/js/klipse.js?version=2.2.1"></script>
+ <script src="dev/js/klipse.js?version=2.3.0"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -64,8 +64,10 @@ <h2> HTML rendering in markdown</h2>
<span class="clojure">
(ns my.ns
(:require
- [clojure.string :as string]))
- (string/blank? "HELLO!!")
+ [clojure.string :as string :refer [capitalize] :rename {capitalize CAPITALIZE }]))
+ [(string/blank? "HELLO!!")
+ (CAPITALIZE "klipse")
+ ]
</span>
<br/>
@@ -139,6 +141,10 @@ <h1> HTML rendering </h1>
<script src="https://viebel.github.io/klipse/examples/lambdaway_eval.js"></script>
<script>
window.klipse_settings = {
+ codemirror_options_in: {
+ lineWrapping: true},
+ codemirror_options_out: {
+ lineWrapping: true},
selector: '.clojure',
selector_eval_markdown: '.eval-markdown',
selector_eval_html: '.eval-html',
@@ -71,17 +71,38 @@ <h2> requiring a namespace </h2>
(string/blank? "HELLO!!")
</span>
<br/>
-
+
+ <h2> requiring a namespace using :rename</h2>
+ <span class="clojure">
+ (ns my.ns
+ (:require
+ [clojure.string :as string]
+ [clojure.set :refer [union intersection] :rename {union UNION}]))
+ [(intersection #{1 2 3} #{2 3 4})
+ (UNION #{1 2 3} #{2 3 4 5})]
+ </span>
+ <br/>
+
+
<br/>
+ <h2> requiring a goog namespace </h2>
<span class="clojure">
(ns my.gg
(:require [goog.string :as gstring]))
(gstring/capitalize "hello")
</span>
-
-
+(def sort-idempotent-prop
+ (prop/for-all [v (gen/vector gen/int)]
+ (= (sort v) (sort (sort v)))))
+
+(tc/quick-check 100 sort-idempotent-prop)
+
+ </span>
+
+
+
<h2> defining a macro </h2>
<div class="clojure">
@@ -32,15 +32,14 @@ <h2> transpile-only layout with no content </h2>
<p>
<h2> a gist with core.async </h2>
- <b> it works only on dbg mode for the moment </b>
It takes around 15 seconds to start.
It should modify the background color every 2 seconds
<br/>
The compilation doesn't work (you should see an error message), because :refer is not yet supported
</p>
<iframe frameborder="0" width="100%" height="300px"
src=
- "http://localhost:5014/index-dbg.html?cljs_in.gist=viebel/820f672dd176169fd831c7748e6f3cd3">
+ "http://localhost:5014/index-dev.html?cljs_in.gist=viebel/820f672dd176169fd831c7748e6f3cd3&external-libs=[https://raw.githubusercontent.com/mfikes/andare/master/src/main/clojure/]">
</iframe>
<hr>
View
@@ -26,25 +26,10 @@
(defn load-inlined [opts cb]
(cb {:lang :js :source ""}))
-(def known-external-lib
- {
- "immutable" "https://raw.githubusercontent.com/facebook/immutable-js/master/dist/immutable.min.js"
- "jQuery" "https://code.jquery.com/jquery-2.2.4.min.js"
- "underscore" "http://underscorejs.org/underscore-min.js"})
-
(def known-src-paths
{"goog-closure" "https://raw.githubusercontent.com/google/closure-library/v20160713/closure/"
- ;"om" "https://raw.githubusercontent.com/omcljs/om/master/src/main/"
- ;"core.async" "https://raw.githubusercontent.com/mfikes/andare/master/src/main/clojure/"
- ;"cognitect-transit-cljs" "https://raw.githubusercontent.com/cognitect/transit-cljs/master/src"
- ;"cognitect-transit-js" "https://raw.githubusercontent.com/cognitect/transit-js/master/src/"
- ;"datascript" "https://raw.githubusercontent.com/viebel/datascript/master/src/"
- ;"devtools" "https://raw.githubusercontent.com/binaryage/cljs-devtools/master/src"
- ;"gadjett" "https://raw.githubusercontent.com/viebel/gadjett/master/src"
- "clojurescript" ["https://raw.githubusercontent.com/clojure/clojurescript/r1.9.89/src/main/clojure" "https://raw.githubusercontent.com/clojure/clojurescript/r1.9.89/src/main/cljs"]
- ;"cemerick-url" "https://raw.githubusercontent.com/viebel/url/master/src/"
- ;"pathetic" "https://raw.githubusercontent.com/viebel/pathetic/develop/src/"
- ;"tools.reader" "https://raw.githubusercontent.com/viebel/tools.reader/master/src/main/cljs/"
+ "gist" "https://gist.githubusercontent.com"
+ "clojurescript" ["https://raw.githubusercontent.com/clojure/clojurescript/r1.9.89/src/main/clojure" "https://raw.githubusercontent.com/clojure/clojurescript/r1.9.89/src/main/cljs"]
})
(defn repos [additional-libs]
@@ -124,6 +109,7 @@
(let [opts (build-repl-opts {:static-fns static-fns
:external-libs external-libs
:context (keyword context)})]
+ (set! js/COMPILED true)
(replumb/read-eval-call opts cb s)))
(deftrack eval-async-1 [s opts]
View
@@ -5,6 +5,6 @@
(enable-console-print!)
(gadjett/settings! :max-function-calls 100)
-(def version "2.2.1")
+(def version "2.3.0")
(js/console.info "KLIPSE version:" version)

0 comments on commit 6cedcf6

Please sign in to comment.