Home / Companies / Aspect Build / Blog / Post Details
Content Deep Dive

Angular with Bazel

Blog post from Aspect Build

Post Details
Company
Date Published
Author
Jason Bedard
Word Count
668
Language
English
Hacker News Points
-
Summary

The release of rules_js 1.0.0 marks a significant improvement in integrating JavaScript tooling with Bazel, particularly benefiting Angular applications. The Angular CLI provides a comprehensive developer experience by wrapping around the Angular Architect library, allowing various tools like webpack and Sass integration to function seamlessly. However, while the Angular Architect offers an all-in-one approach, it isn't perfectly suited for Bazel's style, which thrives on splitting tasks into independent, cacheable actions. By using Angular's ngc compiler with Bazel, developers can leverage Bazel's advantages like parallelization and remote execution. This setup involves using Bazel's macros to declare ngc as the compiler and configure various Angular project aspects like TypeScript, HTML, and CSS using custom macros. Overall, while Angular Architect simplifies the process, Bazel's approach offers the benefits of modular and efficient build systems, allowing for independent compilation and customization of tools such as webpack for bundling.