clj中运行nrepl
Last active
April 11, 2018 05:34
-
-
Save BUNotesAI/0327ed002ef964f71a0df4fc2c3bf439 to your computer and use it in GitHub Desktop.
clj中运行nrepl (clojure)
This file contains hidden or 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
| ;; 使用deps.edn中的依赖库 | |
| (ns dick | |
| (:require [clojure.string :as string]) | |
| (:require [clj-time.core :as t] | |
| [clj-time.format :as f])) | |
| (println (string/split "I have a good dream" #" ")) | |
| (str (t/now)) |
This file contains hidden or 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
| clj -Anrepl |
This file contains hidden or 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
| {:user {:plugins [ | |
| ;;[chestnut/lein-template "0.15.2"] | |
| ;;[lein-try "0.4.3"] | |
| ;;[lein-ring "0.12.3"] | |
| ;;[luminus/lein-template "1.17.9"] | |
| ] | |
| ;; 从国内下载依赖 | |
| :repositories | |
| [["central" "http://maven.aliyun.com/nexus/content/groups/public"] | |
| ["clojars" "https://mirrors.tuna.tsinghua.edu.cn/clojars/"]] | |
| :dependencies [[org.clojure/tools.nrepl "0.2.12"] | |
| ] | |
| :aliases | |
| { | |
| :nrepl {:extra-deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"}} | |
| :main-opts ["-e" "(require,'[clojure.tools.nrepl.server,:refer,[start-server]]),(start-server,:port,5555)"]} | |
| } | |
| } | |
| } |
This file contains hidden or 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
| { | |
| :deps | |
| { | |
| clj-time {:mvn/version "0.14.2"} | |
| org.clojure/tools.nrepl {:mvn/version "0.2.13"} | |
| } | |
| :aliases | |
| { | |
| :nrepl {:extra-deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"}} | |
| :main-opts ["-e" "(require,'[clojure.tools.nrepl.server,:refer,[start-server]]),(start-server,:port,6666)"]} | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment