- Angular 8 Tutorial
- Angular 8 - Home
- Angular 8 - Introduction
- Angular 8 - Installation
- Creating First Application
- Angular 8 - Architecture
- Angular Components and Templates
- Angular 8 - Data Binding
- Angular 8 - Directives
- Angular 8 - Pipes
- Angular 8 - Reactive Programming
- Services and Dependency Injection
- Angular 8 - Http Client Programming
- Angular 8 - Angular Material
- Routing and Navigation
- Angular 8 - Animations
- Angular 8 - Forms
- Angular 8 - Form Validation
- Authentication and Authorization
- Angular 8 - Web Workers
- Service Workers and PWA
- Angular 8 - Server Side Rendering
- Angular 8 - Internationalization (i18n)
- Angular 8 - Accessibility
- Angular 8 - CLI Commands
- Angular 8 - Testing
- Angular 8 - Ivy Compiler
- Angular 8 - Building with Bazel
- Angular 8 - Backward Compatibility
- Angular 8 - Working Example
- Angular 9 - What’s New?
- Angular 8 Useful Resources
- Angular 8 - Quick Guide
- Angular 8 - Useful Resources
- Angular 8 - Discussion
Angular 8 - Building with Bazel
Bazel is an advanced build and test tool. It supports lot of features suitable for large projects.
Some of the features of Bazel are as follows:
- Support multiple languages.
- Support multiple platforms.
- Support multiple repository.
- Support high-level build language.
- Fast and reliable.
Angular supports building the application using bazel. Let us see how to use bazel to compile Angular application.
First, install @angular/bazel package.
npm install -g @angular/bazel
For existing application, Add @angular/bazel as mentioned below:
ng add @angular/bazel
For new application, use below mentioned command:
ng new --collection=@angular/bazel
To build an application using bazel, use below command:
ng build --leaveBazelFilesOnDisk
Here,
leaveBazelFilesOnDisk option will leave the bazel files created during build process, which we can use to build the application directly using bazel.
To build application using bazel directly, install @bazel/bazelisk and then, use bazelisk build command.
npm install -g @bazel/bazelisk bazelisk build
Advertisements