File: test-self-host.clj

package info (click to toggle)
test-check-clojure 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 544 kB
  • sloc: xml: 46; makefile: 38; sh: 22; javascript: 8
file content (19 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(require '[cljs.build.api]
         '[clojure.java.io :as io])

(cljs.build.api/build "src/target/cljs/self-host"
  {:main                  'clojure.test.check.test.runner
   :output-to             "target/out-self-host/main.js"
   :output-dir            "target/out-self-host"
   :target                :nodejs
   :cache-analysis-format :edn})

(defn copy-source
  [filename]
  (spit (str "target/out-self-host/" filename)
    (slurp (io/resource filename))))

(copy-source "cljs/test.cljc")
(copy-source "cljs/analyzer/api.cljc")
(copy-source "cljs/reader.clj")
(copy-source "clojure/template.clj")