Skip to content

How to use the library components? #55

Open

Description

@ancashoria

Hi,
I'm looking at this https://github.com/marko-js/examples/tree/master/examples/library and it's looking like a great foundation to build my component library on, but I don't know where to go from here. How should we use these components in another Marko Run app for example?

Even a high level overview would be nice.
Thanks

Activity

  1. DylanPiercey commented on Mar 22, 2026

    @DylanPiercey
    Contributor

    @ancashoria we've got this section here about how tags are discovered (and specifically how tags from node_modules are discovered). Is this what you're looking for?
    https://markojs.com/docs/reference/custom-tag#installed-custom-tags

  2. ancashoria commented on Mar 22, 2026

    @ancashoria
    Author

    That's really helpful, now I just need to look into how to publish or link the library to the consuming marko project.
    Thanks

  3. DylanPiercey commented on Mar 22, 2026

    @DylanPiercey
    Contributor

    @ancashoria you can publish Marko packages like any other npm package. If it's based on the library example, everything is publish ready. You just need to npm run build first, eg npm run build && npm publish (or whatever publishing pipeline you have to npm).

    We personally like using https://github.com/changesets/changesets for managing releases / changelogs, but any tool to publish to npm should work fine as long as build happens first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions