File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 1- (ns user )
1+ (ns user
2+ (:require
3+ [clojure.java.io :as io]
4+ [malli.dev :as malli-dev]))
25
36(defmacro jit [sym]
47 `(requiring-resolve '~sym))
1114 ((jit clj-reload.core/init) {:dirs [" src" " dev" " test" " ../examples/src" ]})
1215 (reset! initiated-clj-reload? true ))
1316 ((jit clj-reload.core/reload)))
17+
18+ (defn export-types []
19+ ; ; collect schemas and start instrumentation
20+ ((jit malli-dev/start!))
21+
22+ ; ; create export file
23+ (def export-file
24+ (io/file " resources/clj-kondo.exports/com.shipclojure/simulflow_types/config.edn" ))
25+
26+ ; ; make parents if not exist
27+ (io/make-parents export-file)
28+
29+ ; ; copy the configs
30+ (io/copy
31+ (io/file " .clj-kondo/metosin/malli-types-clj/config.edn" )
32+ export-file)
33+
34+ ; ; clear the cache and stop instrumentation
35+ ((jit malli-dev/stop!)))
36+
37+ (comment
38+ (export-types )
39+ ,)
You can’t perform that action at this time.
0 commit comments