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.
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.
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
To run all unit tests, run:
./scripts/unit.sh
To run all integration tests, run:
/scripts/integration.sh