Coder Social home page Coder Social logo

CLJS compatibilty about cli-matic HOT 14 CLOSED

l3nz avatar l3nz commented on May 12, 2024
CLJS compatibilty

from cli-matic.

Comments (14)

l3nz avatar l3nz commented on May 12, 2024 1

We have an initial working system with Planck: https://github.com/l3nz/cli-matic/blob/master/planck.md

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

This is a good idea, I would be interested in trying this lib out and eventually replace tools.cli.

Checking the code...

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

I expect that it should be trivial; it is a matter of implementing namespaces platform.cljs (where JVM stuff is) and optional.cljs where we have optional stuff - the only "optional" that I guess will be there initially is the ability to decode JSON that JS surely has.

Please note that I created the current cljs namespaces in a hurry and functions there just return nil, all of them - so they will break sth else down the line.

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

Link https://medium.com/@jamesleonis/step-inside-cljsbuild-e38271b10415

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

Thank you for the quick answer! Maybe the link is not really the one you wanted to post? I see it points to a leiningen post 😄

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

Oh I see, you wanted to write down the doc to how to configure lein for Cljs.

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

Now I have a clean compile (kind of) but tests still do not pass. Want to give it a try?

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

Yep will give it a try, no promise about time but I will do my best 😄

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

I'm starting to think we should target Planck initially, as it seems the most likely thing one would use to write a CLI app.

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

The classic approach is to implement ClojureScript, keeping the amount of macros very low and then port it to self-host. I have done a bunch of those so I can help with that.

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

Link to keep track of https://github.com/abiocljs/abio

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

I am closing this bug for now after release 0.3.0 and focusing on specific issues

from cli-matic.

arichiardi avatar arichiardi commented on May 12, 2024

Thank you! Not a plank user (yet) but I see no reason why it shouldn't work on any self-host environment (like lumo)

from cli-matic.

l3nz avatar l3nz commented on May 12, 2024

Yes, but you have to start somewhere :) at this point, as it's working, we cn just change the platforms.cljs adding stuff there for various environments! 😄

from cli-matic.

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.