-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
225 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Our uberjar | ||
-injars target/uberjar/rt-postgres-4.0.1.jar | ||
# Our output directory | ||
-outjars obfuscated | ||
|
||
# ProGuard options. Detailed explanation here http://proguard.sourceforge.net/index.html#manual/usage.html | ||
-dontskipnonpubliclibraryclassmembers | ||
-dontnote | ||
-dontwarn | ||
-printseeds | ||
|
||
# -libraryjars /Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home/jmods | ||
-libraryjars $JAVA_HOME/jmods | ||
-libraryjars ~/.m2/repository/org/clojure/clojure/1.11.1/clojure-1.11.1.jar | ||
-libraryjars ~/.m2/repository/foundation/std.lib/4.0.1/std.lib-4.0.1.jar | ||
-libraryjars ~/.m2/repository/foundation/std.lang/4.0.1/std.lang-4.0.1.jar | ||
-libraryjars ~/.m2/repository/foundation/std.json/4.0.1/std.json-4.0.1.jar | ||
-libraryjars ~/.m2/repository/foundation/std.html/4.0.1/std.html-4.0.1.jar | ||
-libraryjars ~/.m2/repository/org/jsoup/jsoup/1.16.1/jsoup-1.16.1.jar | ||
-libraryjars ~/.m2/repository/com/impossibl/pgjdbc-ng/pgjdbc-ng/0.8.9/pgjdbc-ng-0.8.9.jar | ||
-libraryjars ~/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.15.2/jackson-core-2.15.2.jar | ||
-libraryjars ~/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.15.2/jackson-databind-2.15.2.jar | ||
-libraryjars ~/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.2/jackson-datatype-jsr310-2.15.2.jar | ||
|
||
# What we will be doing is obfuscating, shrinking and optimizing the jar. | ||
# If you experience any problems start out with obfuscation and add the | ||
# -dontoptimize and the -dontshrink flags and see if it works. | ||
|
||
# Tell proguard to leave the clojure runtime alone | ||
# You would need to add any other classes that you wish to preserve here. | ||
-keep class clojure.** { *; } | ||
-keep class java.** { *; } | ||
-keep class javax.** { *; } | ||
# -keep class rt.postgres.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
(ns hello | ||
(:require [std.lang :as l] | ||
[std.lib :as h])) | ||
|
||
|
||
(l/script :js) | ||
|
||
(!.js | ||
(fn [] | ||
(var a 1) | ||
(var b 2) | ||
(return | ||
(+ 1 2 3)))) | ||
|
||
|
||
(defn.js add-10 | ||
[x] | ||
(return (+ x 10))) | ||
|
||
|
||
|
||
(l/script :python | ||
{:runtime :basic | ||
:require [[xt.lang.base-lib :as k]]}) | ||
|
||
(defn.py add-20 | ||
[y] | ||
(return (+ y 20))) | ||
|
||
|
||
|
||
|
||
(comment | ||
(add-10 10) | ||
(add-20 10) | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.