This pull request streamlines the monorepo by updating and removing unnecessary packages, aiming to reduce the artifact size and optimize the build process. The key improvements are:
Current artifact size after this PR: 6 MB (Example)
Result: A 8x reduction in artifact size, making the artifacts much more efficient and faster to handle in CI/CD pipelines.
Local Build Optimization:
Main branch (npm run build): 40.9 MB build folder
This branch (npm run build): 20 MB build folder
Result: Nearly a 2x reduction in the local build folder size, which will lead to faster load times and improved development efficiency.
Also I tested with clean after removing all node_modules with npx rimraf '**/node_modules'
I run npm install && npm run build:local && npm start and
in main branch it takes 48 seconds
with this changes it takes 28 seconds
Removed unused API endpoint:
Following endpoints are removed because they were not used by Apollon Standalone and Artemis
Package Cleanup: Removed packages that were no longer essential, ensuring the project maintains only what’s strictly required.
Updated Shared Dependencies: Updated dependencies in the shared package to ensure consistency and avoid redundancy across packages in the monorepo.
Build Optimization: Minimized artifacts and build size by optimizing Webpack configurations, removing unused files, and updating the npm workspace structure.
Impact
Improved CI/CD Performance: The reduced artifact size significantly speeds up the Bamboo pipeline, resulting in faster deploys and less storage usage.
Easier Development and Testing: A smaller local build size means more manageable files, which will improve the developer experience when building and testing locally.
Consistency Across Packages: Ensuring the same version of dependencies across all packages reduces dependency conflicts and makes maintaining and upgrading packages easier in the future.
Testing
Verified Bamboo artifacts to confirm size reduction.
Confirmed local build size optimization and checked functionality to ensure no issues from package removals or updates.
Summary
This pull request streamlines the monorepo by updating and removing unnecessary packages, aiming to reduce the artifact size and optimize the build process. The key improvements are:
Reduction in Bamboo artifact size:
Local Build Optimization:
npm run build
): 40.9 MB build foldernpm run build
): 20 MB build folderAlso I tested with clean after removing all node_modules with
npx rimraf '**/node_modules'
I runnpm install && npm run build:local && npm start
and in main branch it takes 48 seconds with this changes it takes 28 secondsRemoved unused API endpoint: Following endpoints are removed because they were not used by Apollon Standalone and Artemis
Changes
shared
package to ensure consistency and avoid redundancy across packages in the monorepo.Impact
Testing