Figured I would just ask for the abstract basics. Just consider me an amateur noob. I was digging into ComfyUI code to look into integrating or rewriting a script of mine into a custom node for the first time. The source for custom nodes sourced through the ComfyUI node manager have some kind of Yarn package or system. I have no idea what that is or what it is used for and figured it might make a light conversation.

  • RagingRobot@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    2 days ago

    Yarn is a package manager. It lets you install libraries and run scripts for JavaScript.

    If you need to add a library to your project you do something like ‘yarn add react’ for example. That would install react in your project.

    If you write code that needed to be compiled or you wanted to minify it or change it in some way you can also use yarn to help.