GithubHelp home page GithubHelp logo

Graph API about bem-deps HOT 3 CLOSED

bem-sdk-archive avatar bem-sdk-archive commented on July 22, 2024
Graph API

from bem-deps.

Comments (3)

qfox avatar qfox commented on July 22, 2024

That's a huge change actually. Not a bad one but a really huge.

Can you please explain reasons more widely?
It doesn't look easier for me than specification. Clear specification is literally the same as clear API to me.
It's not clear how we can do it faster.
Not sure why we can't convert anything to graph to resolve many times atm. It doesn't rely on the public API.
Query language can be any with any input format. It doesn't rely again on the public API.

Also I can't get what is the proposed format for deps.js files.

from bem-deps.

qfox avatar qfox commented on July 22, 2024

After a meeting I suggest to use this API:

  • graph.node(entity) — as you suggested just without the second {?{tech: string}} argument
  • node.dependOn(dependentEntity[, { techs: ?[string, string], ordered: boolean }])
    passed techs means depsByTech: the first string requires the later ones:

    graph.node({block: 'a'}).dependOn({block: 'b'}).dependOn({block: 'c'}, { techs: ['js', 'tmpl'] });
    and if techs were not specified we add the common edge (any to the same), and if specified, we add additional edges with the first to the later ones.

Need additional research here ;-(

from bem-deps.

qfox avatar qfox commented on July 22, 2024

Guess it's resolved as http://github.com/bem-sdk/bem-graph package

from bem-deps.

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.