pullah
July 11, 2018, 4:55pm
1
Hi there,
I’m interested in using the Clojure/Clj CLI tools + deps.edn to replace the REPL+dependency resolution features provided by Boot.
Is anyone doing something similar, and have example workflows that they feel are working for them?
The only two resources that I have come across are;
deps.edn
{:aliases {:dev {:extra-deps
{org.clojure/tools.nrepl {:mvn/version "0.2.13"}
cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"}}}
:std {:extra-paths ["resources"]}
:test {:extra-paths ["test"]}}
:mvn/repos {"private-repo" {:url "https://example.com/repository/maven-releases/"}}}
script_repl.sh
#!/bin/bash
cd "$(dirname $0)/.."
REPL_PORT=8999 clj -C:std -R:std:dev -i $HOME/opt/user.clj -r
script_run.sh
#!/bin/bash
cd "$(dirname $0)/.."
MAIN_NS="my.main.ns"
echo "Running $MAIN_NS..."
echo ""
clj -C:std -m $MAIN_NS $*
There are more than three files. show original
I just created Tablizer , it’s a little command line tool that takes a URL, fetches the page, finds any <table> tags, and prints them out as ASCII table (org-mode style).
I first started with lein new tablizer, but then decided against that and instead just created a deps.edn and took it from there. I have the say: the experience was great!
You can just put a shebang on top of the file, #!/usr/bin/env clj, make a Clojure file executable, and bam, you got yourself a command line script. To be ho…
I’ve been toying around a little, but just interested in other peoples experiences.
Many thanks.
Peter
2 Likes
michal
July 12, 2018, 9:38pm
2
Well, I tried to implement my own workflows too in a bit boot-ish way: Revolt
enjoy
1 Like
pullah
July 13, 2018, 11:19am
3
@michal - Nice. Thanks. I’ll take a look.
system
Closed
January 11, 2019, 11:19pm
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.