Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

chore: update build setup, fix #134 #127

Merged
merged 8 commits into from
Jun 21, 2024
Merged

chore: update build setup, fix #134 #127

merged 8 commits into from
Jun 21, 2024

Conversation

hanspagel
Copy link
Member

@hanspagel hanspagel commented Jun 11, 2024

This PR tries to bring the build setup closer to what we do in scalar/scalar:

https://github.com/scalar/scalar/blob/main/packages/build-tooling/src/build-options.ts

Here’s some of the noteworthy changes:

  • Adds Minification (bundle size -35%)
  • Uses the typescript plugin (instead of a separate build step)
  • Removes the src/ prefix from the build in dist/
  • Outputs the bundle sizes

Fixes #134.

Copy link

changeset-bot bot commented Jun 11, 2024

⚠️ No Changeset found

Latest commit: 349ddaa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

relativeci bot commented Jun 11, 2024

#114 Bundle Size — 74.91KiB (-35.66%).

349ddaa(current) vs 8d8aa80 main#112(baseline)

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
#114
     Baseline
#112
Improvement  Initial JS 74.91KiB(-35.66%) 116.42KiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 100% 0%
No change  Chunks 45 45
No change  Assets 45 45
No change  Modules 45 45
No change  Duplicate Modules 0 0
No change  Duplicate Code 0% 0%
No change  Packages 0 0
No change  Duplicate Packages 0 0
Bundle size by type  Change 1 change Improvement 1 improvement
                 Current
#114
     Baseline
#112
Improvement  JS 74.91KiB (-35.66%) 116.42KiB

Bundle analysis reportBranch chore/build-setupProject dashboard

Copy link

cloudflare-workers-and-pages bot commented Jun 15, 2024

Deploying openapi-parser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 349ddaa
Status: ✅  Deploy successful!
Preview URL: https://f439a527.openapi-parser.pages.dev
Branch Preview URL: https://chore-build-setup.openapi-parser.pages.dev

View logs

@hanspagel hanspagel changed the title chore: update build setup chore: update build setup, fix #134 Jun 15, 2024
@hanspagel hanspagel marked this pull request as ready for review June 20, 2024 12:32
@hanspagel hanspagel requested a review from marclave June 20, 2024 12:32
@hanspagel hanspagel marked this pull request as draft June 20, 2024 12:36
@hanspagel hanspagel marked this pull request as ready for review June 20, 2024 12:39
Copy link
Member

@marclave marclave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@hanspagel hanspagel merged commit 9c5aeed into main Jun 21, 2024
7 checks passed
@hanspagel hanspagel deleted the chore/build-setup branch June 21, 2024 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants