Giter VIP home page Giter VIP logo

Comments (4)

practicalli-johnny avatar practicalli-johnny commented on May 21, 2024

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.

behrica avatar behrica commented on May 21, 2024

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.

practicalli-johnny avatar practicalli-johnny commented on May 21, 2024

: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.

practicalli-johnny avatar practicalli-johnny commented on May 21, 2024

I'll close the issue for now. Do let me know if any refinement is required. Thanks.

from clojure-cli-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.