Socket
Socket
Sign inDemoInstall

@angular-builders/bazel

Package Overview
Dependencies
30
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @angular-builders/bazel

Run Bazel under the Angular CLI


Version published
Weekly downloads
267
decreased by-6.32%
Maintainers
1
Install size
75.3 MB
Created
Weekly downloads
 

Readme

Source

Angular CLI support for Bazel

Provides an Angular CLI Builder, which can execute Bazel when triggered by ng build, ng test, etc. See https://angular.io/guide/cli-builder for more info about Builders.

This package is a replacement for parts of the deprecated @angular/bazel package previously maintained by the Angular team.

This builder assumes you have already created Bazel configurations (WORKSPACE and BUILD files). There is presently no tooling to generate these automatically that's supported by either Angular team or rules_nodejs maintainers. See the @bazel/create package for a quickstart to creating a Bazel workspace, or look at examples in rules_nodejs.

To use it, you would just install this package (it doesn't hook into ng add because it has no schematics):

$ npm install --save-dev @angular-builders/bazel

Then edit your angular.json to invoke Bazel. For example, to have ng build do bazel build //:all you would edit the architect block to have:

"architect": {
  "build": {
    "builder": "@angular-builders/bazel:build",
    "options": {
      "targetLabel": "//:all",
      "bazelCommand": "build"
    }
  }
}

Keywords

FAQs

Last updated on 02 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc