Skip to content

FEATURE - Component bundles #662

@khawkins98

Description

@khawkins98

As discussed in Slack last week, it would be helpful for getting started and component management to have "bundles" that pull in needed components.

For examples, vf-bundle-group-sites might contain:

  • vf-inlay
  • vf-page-header
  • vf-activity-group
  • and so on

And embl-bundle-default might contain:

  • embl-logo
  • embl-favicon
  • embl-content-hub-loader
  • embl-breadcrumbs-lookup
  • and so on

The use case seems pretty clear, but there are — as ever — implementation questions:

  • what do we call these? "bundles"?
  • how do format the names? {scope}-bundle-{name}, that is: embl-bundle-event-pages
  • where do they live? in the vf-core repo? in ./components/* or a new ./bundles/*?
  • how do they work? a package.json with documentation?

They would probably be similar to this: https://github.com/primer/css/tree/v10.3.0/modules/primer-marketing

These will be useful as we make more EMBL eleventy sites so I think the priority here is fairly high.

If nothing above sounds terribly wrong I'll make a quick PR with a proof of concept for discussion.

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