GetJobber / atlantis

🔱 Atlantis
https://atlantis.getjobber.com
MIT License
27 stars 30 forks source link

feat(components): Export component names as meta.json #1989

Closed jdeichert closed 2 months ago

jdeichert commented 2 months ago

Motivations

This PR adds a new meta.json file to both components and components-native packages. This new file is meant to export metadata that other projects can consume (meant for CI use cases). For now it just exports a list of all component names in that package. In the future it could export more info as we see fit.

We need to manually update meta.json whenever we ship new components (or remove them). The tests I added will verify meta.json is always up to date, which prevents us from forgetting to update it.

Changes

Added

Fixed

Testing

To test this, modify meta.json and delete a few component names. The unit tests should fail accordingly.

Changes can be tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: ea3fe20
Status: âœ…  Deploy successful!
Preview URL: https://aaa92bb7.atlantis.pages.dev
Branch Preview URL: https://cleanup-export-component-met.atlantis.pages.dev

View logs

github-actions[bot] commented 2 months ago

Published Pre-release for 46b7571a2a86011e539117702c9d103d20a179a3 with versions:

  - @jobber/components-native@0.70.1-CLEANUPex-46b7571.4+46b7571a

To install the new version(s) for Mobile run:

npm install @jobber/components-native@0.70.1-CLEANUPex-46b7571.4+46b7571a