forked from venantius/ultra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preparation for [whidbey "2.0.1"] + example
To be compliant with greglook/whidbey#28 fixes: greglook/whidbey#21
- Loading branch information
1 parent
309350c
commit d15d882
Showing
7 changed files
with
64 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# example | ||
|
||
This example demonstrates | ||
1. How to use ultra | ||
2. How `:repl-options {:init …}` can be used in combination with ultra | ||
3. That `[nrepl "0.6.0"]` is supported | ||
## Usage | ||
|
||
```sh | ||
lein repl | ||
``` | ||
|
||
```clj | ||
nrepl.version/version | ||
``` | ||
|
||
```sh | ||
lein test | ||
``` |
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,9 @@ | ||
(defproject example "0.1.0-SNAPSHOT" | ||
:description "FIXME: write description" | ||
:dependencies [[org.clojure/clojure "1.10.0"] | ||
[nrepl "0.6.0"] | ||
#_[mvxcvi/whidbey "2.0.1-SNAPSHOT"] [johannesloetzsch/whidbey "2.0.1-SNAPSHOT"]] ;; not yet released by mvxcvi | ||
:plugins [[venantius/ultra "0.6.0-SNAPSHOT"]] | ||
:middleware [ultra.plugin/middleware] | ||
:repl-options {:init-ns example.core | ||
:custom-init (example.core/init)}) |
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 @@ | ||
(ns example.core) | ||
|
||
(defn init [] | ||
(println "Hello, World!") | ||
(println "You may want check: nrepl.version/version") | ||
(println "nrepl 0.6.0 is now supported by whidbey and ultra :)\n")) |
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 @@ | ||
(ns example.core-test | ||
"String tests that will fail on purpose to show diff output. Intended for makin' pretty screenshots." | ||
(:require [clojure.test :refer :all])) | ||
|
||
(deftest string-comparison-1 | ||
(is (= "spice" "spork"))) | ||
|
||
(deftest string-comparison-2 | ||
(is (= "strings equal" "strings equal")) | ||
(is (= "balloon" "baloon")) | ||
(is (= "animal" "imal"))) |
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