Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(build): add bundle analysis #20

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

chore(build): add bundle analysis #20

wants to merge 3 commits into from

Conversation

Convly
Copy link
Member

@Convly Convly commented Dec 23, 2024

Introduces several updates related to CI optimization processes and enhancing build analysis:

  1. Bundle Size Comparison Workflow: A new GitHub workflow (bundlesize-compare.yml) has been added to automate the comparison of bundle sizes in both browser and Node.js builds. It triggers on pull requests, builds the project for both the PR code and the base branch, and uploads artifact files (.stats/bundle.*.json) for size comparison.
  2. PNPM Setup Action: A custom GitHub action (setup-pnpm) has been created to handle the installation and caching of pnpm and Node.js, simplifying dependency management in the CI pipeline.
  3. Bundle Visualization: The rollup-plugin-visualizer plugin has been integrated into the build process to generate analysis reports (.stats/bundle.*.json) for both Node.js and browser builds, assisting in understanding the bundle composition.
  4. Git Ignore Update: The .gitignore file now excludes generated .stats files to prevent them from being committed.

@Convly Convly added pr: chore Cleanups / dependencies / tooling / styling source: repository Source is the strapi/sdk-js repository labels Dec 23, 2024
@Convly Convly added the flag: don't merge This PR should not be merged at the moment label Dec 23, 2024
Base automatically changed from feat/debug to main December 26, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: don't merge This PR should not be merged at the moment pr: chore Cleanups / dependencies / tooling / styling source: repository Source is the strapi/sdk-js repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant