GithubHelp home page GithubHelp logo

Transitive dart dependencies about clojuredart HOT 6 OPEN

cgrand avatar cgrand commented on May 25, 2024
Transitive dart dependencies

from clojuredart.

Comments (6)

momerath42 avatar momerath42 commented on May 25, 2024 1

I don't know about others, but only the local/root case matters to me (and it would definitely be nice to have soon); I'd be happy to work on this, if it's a good candidate for getting my feet wet.

from clojuredart.

cgrand avatar cgrand commented on May 25, 2024

After more thoughts on the problem:

  • having our own file (not deps.edn) simplifies packaging but we lose some integration, we think the trade-off is ok because it only impacts authors of cljd libraries using dart deps
  • we use resolve-deps to get a map of libs to paths
  • we scan all deps for pubspec.yaml
  • we create dummy projects under .clojuredart that we add as local deps to pubspec
  • we name the dummy projects after either a she or the project name or both

from clojuredart.

dupuchba avatar dupuchba commented on May 25, 2024

@momerath42 that's very nice but I think but we need it ASAP so we are going to do it. But we could need some help on review, testing, design & co

from clojuredart.

momerath42 avatar momerath42 commented on May 25, 2024

a76c09a is working great, with a bunch of dart dependencies pulled in from my other (root/local) project, as well as use of several of its .cljd files. Thanks!

from clojuredart.

cgrand avatar cgrand commented on May 25, 2024

In a76c09a we implemented a way to handle dart dependencies (transitively across deps.edn).

For lib users: it should just work, add the lib to deps.edn and the next cljd command (compile, flutter, clean) will retrieve dart deps if needed.

For lib authors:

  • declare dart deps in pubspec.yaml as usual
  • when packaging as a jar, copy pubspec.yaml on the classpath before building (or add it to the root of the jar)

from clojuredart.

dupuchba avatar dupuchba commented on May 25, 2024

[ ] TODO: document it

from clojuredart.

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.