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

ng-packagr

Package Overview
Dependencies
Maintainers
2
Versions
327
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-packagr

Compile and package Angular libraries in Angular Package Format (APF)

  • 19.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
570K
decreased by-20.18%
Maintainers
2
Weekly downloads
 
Created

What is ng-packagr?

ng-packagr is a tool for building and packaging Angular libraries in a way that is compatible with the Angular Package Format (APF). It helps developers to create reusable Angular libraries that can be easily distributed and consumed by other Angular applications.

What are ng-packagr's main functionalities?

Library Packaging

This command packages an Angular library according to the configuration specified in the ng-package.json file. It compiles the TypeScript code, bundles the library, and generates metadata files.

ng-packagr -p ng-package.json

Configuration File

The ng-package.json file is used to configure the packaging process. It specifies the destination directory for the packaged library and the entry file for the library.

{
  "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
  "dest": "dist/my-lib",
  "lib": {
    "entryFile": "src/public-api.ts"
  }
}

Custom Build Steps

You can add custom build steps in your package.json file to automate the packaging process. This example shows how to add a build script that runs ng-packagr with the specified configuration file.

{
  "scripts": {
    "build": "ng-packagr -p ng-package.json"
  }
}

Other packages similar to ng-packagr

Keywords

FAQs

Package last updated on 22 Nov 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