Skip to content

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
philoskim committed Aug 9, 2021
1 parent 5b5ed53 commit a93ad82
Show file tree
Hide file tree
Showing 258 changed files with 138,208 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[listing]
----
[philoskim/debux-stubs "0.7.9"]
[philoskim/debux-stubs "0.8.0"]
----


Expand Down
26 changes: 26 additions & 0 deletions examples/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Debux examples project
:source-language: clojure
:source-highlighter: coderay
:sectnums:

## Running examples in Clojure

[listing]
----
$ lein clean
$ lein run
----


## Running examples in ClojureScript

[listing]
----
$ lein clean
$ lein figwheel
----

. Open the URL http://localhost:3449/ in your browser.

. Open the DevTool's console widnow by pressing <Ctrl-Shift-I> in case of Google Chrome
and you will see the evaluated results of the examples.
100 changes: 100 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>examples</groupId>
<artifactId>examples</artifactId>
<packaging>jar</packaging>
<version>0.1.0-SNAPSHOT</version>
<name>examples</name>
<description/>
<scm/>
<build>
<sourceDirectory>src/clj</sourceDirectory>
<testSourceDirectory>test</testSourceDirectory>
<resources>
<resource>
<directory>resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>resources</directory>
</testResource>
</testResources>
<directory>target</directory>
<outputDirectory>target/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/cljc</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>clojars</id>
<url>https://repo.clojars.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
<dependencyManagement>
<dependencies/>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojurescript</artifactId>
<version>1.10.238</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>core.async</artifactId>
<version>0.3.465</version>
</dependency>
<dependency>
<groupId>philoskim</groupId>
<artifactId>debux</artifactId>
<version>0.6.8</version>
</dependency>
</dependencies>
</project>

<!-- This file was autogenerated by Leiningen.
Please do not edit it directly; instead edit project.clj and regenerate it.
It should not be considered canonical data. For more information see
https://github.com/technomancy/leiningen -->
24 changes: 24 additions & 0 deletions examples/project.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
(defproject examples "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.10.238"]
[org.clojure/core.async "0.3.465"]
[philoskim/debux-stubs "0.8.0"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.18"]]
:source-paths ["src/clj" "src/cljc"]
:main examples.core
:clean-targets ^{:protect false}
["target"
"resources/public/js/out"
"resources/public/js/app.js"
"resources/public/js/app.js.map"]
:cljsbuild {:builds [{:id "dev"
:source-paths ["src/cljs" "src/cljc"]
:figwheel true
:compiler {:main examples.core
:preloads [examples.preload #_devtools.preload]
:asset-path "js/out"
:output-to "resources/public/js/app.js"
:output-dir "resources/public/js/out"
:source-map true
:optimizations :none} }]})
13 changes: 13 additions & 0 deletions examples/resources/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
</head>

<body>
<h2>cljs.debux example</h2>
<h3>Look at the developer console of the browser!</h3>

<script src="js/app.js" type="text/javascript"></script>
</body>
</html>
12 changes: 12 additions & 0 deletions examples/resources/public/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var CLOSURE_UNCOMPILED_DEFINES = {};
var CLOSURE_NO_DEPS = true;
if(typeof goog == "undefined") document.write('<script src="js/out/goog/base.js"></script>');
document.write('<script src="js/out/goog/deps.js"></script>');
document.write('<script src="js/out/cljs_deps.js"></script>');
document.write('<script>if (typeof goog == "undefined") console.warn("ClojureScript could not load :main, did you forget to specify :asset-path?");</script>');
document.write('<script>goog.require("examples.preload");</script>');
document.write('<script>goog.require("figwheel.connect");</script>');
document.write('<script>goog.require("process.env");</script>');
document.write('<script>goog.require("examples.core");</script>');

document.write("<script>figwheel.connect.start();</script>");
1 change: 1 addition & 0 deletions examples/resources/public/js/out/.figwheel-compile-stamp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-1110980917
Loading

0 comments on commit a93ad82

Please sign in to comment.