compile-cljsdt 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/src/cli/core.cljs +21 -0
- package/README.md +11 -0
- package/index.mjs +9 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(ns cli.core
|
|
2
|
+
#_(:require
|
|
3
|
+
[cli.compiler :refer [get-dtcljs-filename execute-compilation tokenize-dtcljs]]
|
|
4
|
+
[cli.utils :refer [print-greetings validate-os throw-error]]
|
|
5
|
+
|
|
6
|
+
))
|
|
7
|
+
|
|
8
|
+
(defn -main []
|
|
9
|
+
(try
|
|
10
|
+
(println "$$$$ VAMOS CLOJURESCRIPT COM TIPOS DEPENDENTES $$$$$")
|
|
11
|
+
;(print-greetings)
|
|
12
|
+
;(validate-os)
|
|
13
|
+
;; (validate-devenv-installation)
|
|
14
|
+
#_(-> (get-dtcljs-filename)
|
|
15
|
+
(tokenize-dtcljs)
|
|
16
|
+
(execute-compilation))
|
|
17
|
+
(catch js/Error e
|
|
18
|
+
(println "error : " e)
|
|
19
|
+
#_(throw-error e))))
|
|
20
|
+
|
|
21
|
+
(-main)
|
package/README.md
ADDED
package/index.mjs
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { addClassPath, loadFile } from 'nbb';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
5
|
+
import { dirname, resolve } from 'path';
|
|
6
|
+
|
|
7
|
+
const __dirname = fileURLToPath(dirname(import.meta.url));
|
|
8
|
+
|
|
9
|
+
addClassPath(resolve(__dirname, '.bin/src'));
|
|
10
|
+
await loadFile(resolve(__dirname, '.bin/src/cli/core.cljs'));
|