Skip to content

Conversation

@karthik2804
Copy link
Collaborator

We can upgrade the Componentize-js once there is a new release. This PR will allow us to create a new release which can then be used to restructure templates.

This PR also adds caching to avoid componentization during the build if not required.

@karthik2804 karthik2804 force-pushed the improve_build branch 2 times, most recently from a2f1c47 to 387a9a6 Compare January 20, 2025 09:16
Copy link
Contributor

@ThorstenHans ThorstenHans left a comment

Choose a reason for hiding this comment

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

Raised two questions as part of my review

const sourceChecksum = await calculateChecksum(src);
const existingChecksum = await getExistingChecksum(inputChecksumPath);

if ((existingChecksum === sourceChecksum) && fileExists(outputPath)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO we should also create a checksum for package-lock.json. Shouldn't we? User could update dependencies or dev-dependencies that could affect the build.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That will have an impact on the bundle generated by webpack which is what would be the input to this build script. We still end up running webpack everytime.

@karthik2804 karthik2804 merged commit a767a41 into spinframework:main Jan 20, 2025
5 checks passed
@karthik2804 karthik2804 deleted the improve_build branch January 20, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants