-
Notifications
You must be signed in to change notification settings - Fork 1
fix(makefile): extract custom npm packages build as build_custom_npms… #105
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the Makefile build process by extracting custom npm package builds into a separate target called build_custom_npms. This allows developers to rebuild only the custom npm packages without rebuilding the entire Nextcloud application.
Key changes:
- Extracted custom npm package builds into a dedicated
build_custom_npmstarget - Updated build dependencies to use the new target
- Removed redundant
.remove_node_modulesdependency frombuild_locally
df7bc2b to
b915439
Compare
- Change 'patch_shippend_json' to 'patch_shipped_json' - Ensures proper phony target declaration Signed-off-by: Misha M.-Kupriyanov <[email protected]>
… target - Add all missing targets to .PHONY declaration for proper phony behavior - Add comprehensive 'clean' target that removes build artifacts - Keep original .remove_node_modules target for backward compatibility Signed-off-by: Misha M.-Kupriyanov <[email protected]>
- Split .PHONY declarations into logical groups with descriptive comments - Groups: core targets, NPM packages, main build, applications, themes, config/packaging, meta targets - Improves readability and maintainability of the Makefile Signed-off-by: Misha M.-Kupriyanov <[email protected]>
…ronment variables - Add comment explaining TARGET_PACKAGE_NAME variable purpose - Document required FONTAWESOME_PACKAGE_TOKEN environment variable - Improves developer onboarding and reduces setup confusion Signed-off-by: Misha M.-Kupriyanov <[email protected]>
b915439 to
4d16659
Compare
… task in order to be able to rebuild only custom npm packages Signed-off-by: Misha M.-Kupriyanov <[email protected]>
in order to rebuild without rebuilding custom npm packages Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Reintroduce the help target in the Makefile to provide usage instructions for available make commands. Signed-off-by: Misha M.-Kupriyanov <[email protected]>
4d16659 to
275a984
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Updated the Makefile to suppress echo output for build messages by adding '@' before the echo commands. This change improves the output readability during the build process. Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Signed-off-by: Misha M.-Kupriyanov <[email protected]>
This change introduces a check for the FONTAWESOME_PACKAGE_TOKEN environment variable before building custom npm packages, ensuring that the necessary token is set to avoid build failures. Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Enhance the Makefile by adding echo statements to provide feedback during the build process, including cleaning artifacts, building packages, and generating version files. Signed-off-by: Misha M.-Kupriyanov <[email protected]>
Enhance visibility of build process by adding informative prefix to echo statements in the Makefile. Signed-off-by: Misha M.-Kupriyanov <[email protected]>
3b28340 to
a9b4da3
Compare
… task
in order to be able to rebuild only custom npm packages