ls1intum / Apollon_standalone

Standalone version of Apollon Editor
MIT License
11 stars 2 forks source link

Optimize Monorepo by Reducing Artifact and Build Sizes through Package Cleanup and Dependency Updates #110

Closed egenerse closed 2 weeks ago

egenerse commented 1 month ago

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:

  1. Reduction in Bamboo artifact size:

    • Previous artifact size: 54 MB (Example)
    • 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.
  2. 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

  3. Removed unused API endpoint: Following endpoints are removed because they were not used by Apollon Standalone and Artemis

    router.post('/converter/pdf', (req, res) => conversionResource.convert(req, res));
    router.get('/converter/status', (req, res) => conversionResource.status(req, res));

Changes

Impact

Testing