[Buildroot] [PATCH 0/2] package: bring two host tools
Alexis Lothoré via buildroot <[email protected]>
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
Hello, this small series aims to bring two new host packages to ease the integration of web apps onto embedded platforms: - uglifyjs ([1]), used to minify frontend assets, - sass ([2]), a css extension adding programmation features to css. Those two tools come in the shape of binaries installed in the host directory. The use case supported by those new packages is the possibility to run mini_asset ([3]) on host during some custom package build, with uglifyjs and sass being two dependencies of it. The series does not bring a mini_asset package though, as it can be brought by the custom composer file in the final application project. This use case kind of similar to what have been proposed in the past with BR2_PACKAGE_HOST_NODEJS_MODULES_ADDITIONAL ([4]). At this time, the proposal was rejected, and Arnout rather suggested to create dedicated packages for this kind of host tools. This series follows this suggestion, hoping that it is still the most relevant solution, 4 years later. Another important point to mention is that the second package is fetching some deps (npm install) at build step, which is not ideal, but also suggested in Arnout's initial proposal. If that's not desired anymore, I'm open to some guidance to improve this. [1] https://www.npmjs.com/package/uglify-js [2] https://www.npmjs.com/package/sass [3] https://github.com/markstory/mini-asset [4] https://lore.kernel.org/buildroot/[email protected]/ --- Alexis Lothoré (2): package/uglifyjs: new package package/sass: new package DEVELOPERS | 2 ++ package/Config.in.host | 2 ++ package/sass/Config.in.host | 8 ++++++ package/sass/sass.hash | 3 +++ package/sass/sass.mk | 30 ++++++++++++++++++++++ package/uglifyjs/Config.in.host | 7 +++++ package/uglifyjs/uglifyjs.hash | 3 +++ package/uglifyjs/uglifyjs.mk | 23 +++++++++++++++++ support/testing/tests/package/test_sass.py | 23 +++++++++++++++++ .../tests/package/test_sass/sample_sass.scss | 7 +++++ support/testing/tests/package/test_uglifyjs.py | 23 +++++++++++++++++ .../tests/package/test_uglifyjs/sample_uglifyjs.js | 5 ++++ 12 files changed, 136 insertions(+) --- base-commit: 3c5c058d156daaba2901e539395a842d2bafd1e6 change-id: 20260806-host_tools-89a53a630ff7 Best regards, -- Alexis Lothoré <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot