FLS-1473 Build optimisation changes#212
Open
nuwan-samarasinghe wants to merge 8 commits into
Open
Conversation
e0459cb to
792b353
Compare
40eb12a to
cee1740
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Ticket: https://mhclgdigital.atlassian.net/browse/FLS-1473
Change description
Build & CI cleanup: submodules, dependencies, Docker, caching; upgrade webpack
Summary
This PR streamlines our build pipeline and dependency management, improves Docker image quality and caching, and upgrades the Designer build to webpack 5 to align with @hapi/hapi v21.
What changed
Submodules handled at checkout
Centralized dependency management
Immutable installs with Yarn
Test & SCSS adjustments
.dockerignore added
Simplified Dockerfiles
Improved Docker layer caching
Designer build: webpack v4 → v5
Why this is better
Faster builds: Better layer caching and smaller contexts.
Reproducible installs: Lockfile-driven, immutable dependency resolution.
Simpler pipeline: Less logic inside Docker; more control in CI.
Modern toolchain: Designer on webpack 5 for current ecosystem compatibility.
Unit tests and other appropriate tests added or updated
README and other documentation has been updated / added (if needed)
Commit messages are meaningful and follow good commit message guidelines (e.g. "FS-XXXX: Add margin to nav items preventing overlapping of logo")
How to test
All e2e should pass