-
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.
- Loading branch information
Showing
258 changed files
with
138,208 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
[listing] | ||
---- | ||
[philoskim/debux-stubs "0.7.9"] | ||
[philoskim/debux-stubs "0.8.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
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. |
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,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 --> |
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,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} }]}) |
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 @@ | ||
<!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> |
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,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>"); |
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 @@ | ||
-1110980917 |
Oops, something went wrong.