compile-cljsdt 0.0.3 → 0.0.4

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.
@@ -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/index.mjs CHANGED
@@ -1,2 +1,10 @@
1
1
  #!/usr/bin/env node
2
- console.log("vamo pra cima!")
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'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compile-cljsdt",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A compiler for a Clojurescript Dialect with Dependent Types",
5
5
  "main": "index.mjs",
6
6
  "scripts": {