Comments (4)
Thank you, this is very interesting. I would like to include more with Clerk, so will try this out tomorrow.
My own preference is to have the loading of clerk libs and starting clerk in a custom user
namespace, so rather than the -e option
"-e" "(require '[nextjournal.clerk])(nextjournal.clerk/show! 'nextjournal.clerk.tap)(nextjournal.clerk/serve! {:browse? true}
I would create a dev/user.clj
file would in the project, e.g.
(ns user
(require
[nextjournal.clerk]))
(nextjournal.clerk/show! 'nextjournal.clerk.tap)(nextjournal.clerk/serve! {:browse? true})
I do not know if this approach would make any difference to the minor issue of tap> not returning control to the repl
I will try both approaches over the coming days and see if there are any difference (I assume it's unlikely).
I'll also try without refactor-nrepl as I havet used clj-refactor for quite a while
Thanks again
from clojure-cli-config.
I tried as well to have "editor commands" which send the above code:
This is an other workable approach.
I do agree that clojure cli does not really have a foreseen way via commandline to send "initialisation code" (before a repl starts), It has "either repl" or "run code to finish" . The "-e" and start repl is a bit of a hack.
from clojure-cli-config.
:repl/clerk
has been added as an initial design for an alias, using the configuration in the original post.
commit: 6b0649a
I've added a comment to highlight its alpha design and have not yet added documentation or an entry to the readme. This will be added once the design is stable.
from clojure-cli-config.
I'll close the issue for now. Do let me know if any refinement is required. Thanks.
from clojure-cli-config.
Related Issues (20)
- Accidentally removed "clone" from git installation command in README HOT 1
- Migrate :project/jar and :project/uberjar aliases to tools.build HOT 7
- Windows and Clojure CLI - escape character issues HOT 7
- Project License? HOT 1
- Would you consider adding scope-capture to the inspect section? HOT 2
- :mvn/local-repo appears to be broken as it is relative HOT 1
- [clojure-deps-edn] Create Pull Request template to guide contributions
- Error when using :search/outdated HOT 3
- `:project/outdated` is mentioned in comments but it looks like it was renamed to `:search/outdated`
- User level deps.edn - november update dependencies to latest versions
- refactor: deprecate unused aliases for simpler config HOT 1
- sayid alias requires middleware
- Reveal has disappeared? HOT 4
- Update repo name and branch
- clj-kondo improvements HOT 6
- Add clj-depend tool HOT 1
- Monthly version update
- deps-new Invalid Tag HOT 1
- Command line arguments to repl/rebel-remote don't work HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojure-cli-config.