8000 GitHub - juleswhite/dot-clojure: My .clojure/deps.edn file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

juleswhite/dot-clojure

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

dot-clojure

This is my .clojure/deps.edn file providing useful clj aliases drawn from a variety of projects.

There are aliases to pull in specific versions of Clojure:

  • :master -- Clojure 1.10.0-master-SNAPSHOT
  • :1.10 -- Clojure 1.10-RC1
  • :1.9 -- Clojure 1.9.0
  • ... back to :1.2

There are aliases to pull in various useful testing and debugging tools:

  • :test -- adds both test and src/test/clojure to your classpath and pulls in the latest stable version of test.check
  • :runner -- pulls in Cognitect Labs' test-runner project and runs any tests it can find
  • :eastwood -- pulls in the 0.2.9 release of Eastwood on your src and test folders; use with :test above
  • :expect -- pulls in the latest stable release of Expectations
  • :bench -- pulls in the latest stable release of Criterium for benchmarking your code
  • :measure -- pulls in the latest stable release of Memory Meter

There are aliases to pull in and start various REPL-related tools:

  • :nrepl -- pulls in the latest stable release of nREPL and starts an nREPL server on port 60606; some tooling may not yet be compatible with the standalone nREPL library
  • :nrepl/old -- pulls in the latest stable release of org.clojure/tools.nrepl and starts an nREPL server on port 60606; this is provided to support legacy tooling
  • :socket -- starts a Socket REPL on port 50505; can be combined with other aliases since this is just a JVM option
  • :prepl -- starts a Socket pREPL on port 40404; can be combined with other aliases since this is just a JVM option; requires a recent Clojure 1.10 build!
  • :proto -- adds the latest stable release of the protorepl library for Atom/ProtoREPL usage (with :nrepl or :nrepl/old)
  • :rebel -- starts a Rebel Readline REPL

An alias to pull in my template creation tool:

  • :new -- pulls in and runs clj-new to create new projects from (Leiningen and other) templates

An alias to build uberjar files:

  • :depstar -- pulls in and runs depstar to create an uberjar; clj -A:depstar MyProject.jar; java -cp MyProject.jar clojure.main -m project.core

And finally, a gnarly little macro, inspired by Ruby's -pne command line option that lets you process lines of standard input:

  • :pne -- cat file-of-numbers.txt | clj -Mpne -e '($ (-> $_ Long/parseLong inc))'; $ reads stdin and evaluates the expression repeatedly with $_ bound to each line, printing the results to stdout

About

My .clojure/deps.edn file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0