Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (33 loc) · 1.33 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.33 KB

Node Module BOM Generator Buildpack

The Node Module BOM Generator CNB generates a bill of materials for all node modules in an app image. The buildpack installs the CycloneDX Node Module tool into a layer for usage within the buildpack, and is cached for subsequent builds. The tool is then used to generate a Bill of Materials for all node modules found within the application source directory.

Integration

The Node Module BOM Generator CNB provides nothing. It detects on the presence of a node_modules directory in the application source directory and requires node.

If there is no node_modules directory in the application source directory, node_modules (provided by the NPM Install CNB or Yarn Install CNB) are also required for detection.

Usage

To package this buildpack for consumption:

$ ./scripts/package.sh --version <version-number>

This will create a buildpackage.cnb file under the build directory which you can use to build your app as follows: pack build <app-name> -p <path-to-app> -b build/buildpackage.cnb

Run Tests

To run all unit tests, run:

./scripts/unit.sh

To run all integration tests, run:

/scripts/integration.sh