Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-devkit/architect

Package Overview
Dependencies
Maintainers
2
Versions
733
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-devkit/architect

Angular Build Facade

  • 0.1703.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.1M
decreased by-25.5%
Maintainers
2
Weekly downloads
 
Created

What is @angular-devkit/architect?

The @angular-devkit/architect package is a tooling and scaffolding library for Angular projects that provides an API to perform complex workflows and build steps in a scalable way. It is used to define builders that can execute tasks like building, serving, and testing Angular applications.

What are @angular-devkit/architect's main functionalities?

Running Builders

This feature allows you to run builders which are functions that can perform a specific task like building or serving an application. The code sample demonstrates how to load and run a builder using the Architect class.

const architect = new Architect(workspace); architect.loadBuilder(info).then(builder => { const run = builder.run(builderConfig); });

Creating Custom Builders

This feature enables the creation of custom builders. The code sample shows how to create a simple custom builder that always succeeds.

import { BuilderOutput, createBuilder } from '@angular-devkit/architect'; export default createBuilder<any, BuilderOutput>((options, context) => { // Custom builder logic here return { success: true }; });

Handling Build Targets

This feature is about scheduling and running builders associated with specific targets defined in the Angular workspace configuration. The code sample illustrates how to schedule a build target.

const target = { project: 'example', target: 'build' }; architect.scheduleTarget(target).then(builderRun => { // Use the result of the builder run });

Other packages similar to @angular-devkit/architect

Keywords

FAQs

Package last updated on 11 Apr 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc