From b005c17e8ccb30720ae6c60319683e8cc8291298 Mon Sep 17 00:00:00 2001 From: Yehonathan Sharvit Date: Thu, 19 Jan 2017 12:09:52 +0200 Subject: [PATCH] version 6.4.0 - cache core.match --- contributing.md | 6 +- dist/klipse_plugin.js | 6 +- dist/klipse_plugin.min.js | 2 +- project.clj | 2 +- resources/public/index-dev.html | 2 +- resources/public/require-dbg.html | 204 +++++++++++++++--------------- src/klipse/core.cljs | 2 +- src/klipse/lang/clojure/io.cljs | 4 +- 8 files changed, 116 insertions(+), 112 deletions(-) diff --git a/contributing.md b/contributing.md index 5a646f19..b3e9322f 100644 --- a/contributing.md +++ b/contributing.md @@ -88,13 +88,15 @@ lumo scripts/generate-clojure-spec-cache.cljs For #2, you need to: -1. run `lein deps +0. `cd docs/cache-cljs` + +1. run `lein deps` 2. open lumo with the appropriate cache folder and class path: ```bash export cp=`lein classpath` -lumo -k docs/cache-cljs -c $cp +lumo -k . -c $cp ``` 3. inside lumo, you need to require your namespaces, and the cache will be stored inder `docs/cache-cljs` e.g.: diff --git a/dist/klipse_plugin.js b/dist/klipse_plugin.js index ab376be9..2237078e 100644 --- a/dist/klipse_plugin.js +++ b/dist/klipse_plugin.js @@ -3524,7 +3524,7 @@ gadjett.core_fn.sort_history=function(a){return cljs.core.sort_by.cljs$core$IFn$ gadjett.core_fn.the_history=function(a){for(var b=[],c=arguments.length,d=0;;)if(d
- + - - - - - + window.klipse_settings.selector_js = '.clojure'; + } else { + window.klipse_settings.selector = '.clojure'; + } + + + + + diff --git a/src/klipse/core.cljs b/src/klipse/core.cljs index 0b7888f3..f11f344c 100644 --- a/src/klipse/core.cljs +++ b/src/klipse/core.cljs @@ -5,7 +5,7 @@ (enable-console-print!) (gadjett/settings! :max-function-calls 100) -(def version "6.3.0") +(def version "6.4.0") (js/console.info "Klipse " version) (js/console.info "Clojurescript " *clojurescript-version*) diff --git a/src/klipse/lang/clojure/io.cljs b/src/klipse/lang/clojure/io.cljs index db7408fc..62b595a8 100644 --- a/src/klipse/lang/clojure/io.cljs +++ b/src/klipse/lang/clojure/io.cljs @@ -138,13 +138,13 @@ (src-cb nil))))) (defn cached-macro-ns-regexp [] - (:clojure_cached_macro_ns_regexp (klipse-settings) #"cljs\.core\.async.*|clojure\.math\.macros|gadjett\.core|cljs\.test|clojure.test.check.*|reagent\..*|om\..*|cljs\.spec.*")) + (:clojure_cached_macro_ns_regexp (klipse-settings) #"cljs\.core\.[async|match].*|clojure\.math\.macros|gadjett\.core|cljs\.test|clojure.test.check.*|reagent\..*|om\..*|cljs\.spec.*")) (defn cached-macro-ns? [name] (re-matches (cached-macro-ns-regexp) (str name))) (defn cached-ns-regexp [] - (:clojure_cached_ns_regexp (klipse-settings) #"cljs\.core\.async.*|cljs\.spec.*|clojure.math\.combinatorics|clojure.test.check.*|reagent\..*|om\..*")) + (:clojure_cached_ns_regexp (klipse-settings) #"cljs\.core\.[async|match].*|cljs\.spec.*|clojure.math\.combinatorics|clojure.test.check.*|reagent\..*|om\..*")) (defn cached-cljs-ns? [name] (re-matches (cached-ns-regexp) (str name)))