-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Built/tested testapp to be sure optimizations don't break functionality.
- Loading branch information
Showing
13 changed files
with
337 additions
and
67 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 @@ | ||
{:npm-deps {"base64-js" "^1.5.0"}} |
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,6 @@ | ||
node_modules | ||
.cpcache | ||
target | ||
resources/public | ||
package.json | ||
package-lock.json |
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,10 @@ | ||
# Test App for tmdjs | ||
|
||
## Usage | ||
|
||
1. Create package.json - `clj -M:cljs-install -m cljs.main --install-deps`. | ||
2. `npm install` | ||
3. `clj -M:cljs compile app` | ||
|
||
|
||
Now you can run the server from the main namespace and check out the timings. |
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,39 @@ | ||
{:paths ["src" "resources"] | ||
:deps {com.cnuernber/tmdjs {:mvn/version "1.00-beta-1-SNAPSHOT"} | ||
http-kit/http-kit {:mvn/version "2.5.3"} | ||
hiccup/hiccup {:mvn/version"1.0.5"} | ||
bidi/bidi {:mvn/version "2.1.6"} | ||
ring/ring {:mvn/version "1.7.0"} | ||
ring/ring-codec {:mvn/version "1.1.3"} | ||
metosin/muuntaja {:mvn/version "0.6.8"} | ||
amalloy/ring-gzip-middleware {:mvn/version "0.1.4"}} | ||
:aliases | ||
{:cljs | ||
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.12.4"} | ||
cider/cider-nrepl {:mvn/version "0.26.0"} | ||
cljs-ajax/cljs-ajax {:mvn/version "0.8.3"} | ||
re-frame/re-frame {:mvn/version "1.2.0"}} | ||
;;dev-resources contains logback.xml which disables annoying jboss logging | ||
:extra-paths ["dev-resources"] | ||
:main-opts ["-m" "shadow.cljs.devtools.cli"]} | ||
|
||
;;used for installing base package.json | ||
;;clj -M:cljs-install -m cljs.main --install-deps | ||
:cljs-install | ||
{:extra-deps {thheller/shadow-cljs {:mvn/version "2.12.4"} | ||
cljs-ajax/cljs-ajax {:mvn/version "0.8.0"} | ||
re-frame/re-frame {:mvn/version "1.2.0"}}} | ||
:standalone-server | ||
{:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.0.193"}} | ||
:ns-default hf.depstar | ||
:exec-fn hf.depstar/uberjar | ||
:exec-args {:group-id "com.cnuernber" | ||
:artifact-id "testapp" | ||
:version "1.00-beta-1" | ||
:sync-pom true | ||
:aot true | ||
:main-class testapp.main | ||
:jar "target/testapp.jar" | ||
;;Disable tensor code generation and ensure direct linking. | ||
:jvm-opts ["-Dclojure.compiler.direct-linking=true" | ||
"-Dclojure.spec.skip-macros=true"]}}}} |
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,13 @@ | ||
<configuration debug="false"> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="info"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
</configuration> |
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,11 @@ | ||
{:deps true | ||
;; set an nrepl port for connection to a REPL. | ||
:nrepl {:port 8777} | ||
:builds {;; example build config, usage suitable for user apps | ||
:app {:target :browser | ||
;;module :app will output data to app.js | ||
:modules {:app {:init-fn testapp.webapp/init}} | ||
:output-dir "resources/public/js" | ||
:asset-path "js" | ||
:devtools {:http-root "resources/public" | ||
:http-port 8700}}}} |
Oops, something went wrong.