Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ngx-build-info
Advanced tools
![CI](https://github.com/blaugold/ngx-build-info/workflows/CI/badge.svg) ![NPM](https://img.shields.io/npm/v/ngx-build-info)
An Angular CLI builder which generates a build info file.
Install the builder:
npm install -D ngx-build-info
And add a target to the project you want to generate a build info file for in angular.json
:
{
...
"projects": {
"app": {
"architect": {
"build-info": {
"builder": "ngx-build-info:build-info"
}
}
}
}
}
The builder expects to find a package.json
file in the project root dir, with name
and
version
.
The builder also expects to be run in a git repository.
{PROJECT_ROOT}/{SOURCE_ROOT}/environments/build-info.ts
.Run the builder when the build info file should be (re)generated.
ng run app:build-info
The build info file contains the following:
export const BUILD_INFO = {
"name": "a",
"version": "1.0.0",
"date": "2020-02-25T02:57:46.420Z",
"branch": "master",
"rev": "5cbf0ca677",
"tag": null,
"commitsSinceLastTag": 0,
"authorDate": "2020-02-25T02:00:29.000Z",
"buildNumber": 42
};
package.json
of the project the builder is configured in.package.json
of the project the builder is configured in.BUILD_NUMBER
CIRCLE_BUILD_NUM
TRAVIS_BUILD_NUMBER
FAQs
![CI](https://github.com/blaugold/ngx-build-info/workflows/CI/badge.svg) ![NPM](https://img.shields.io/npm/v/ngx-build-info)
We found that ngx-build-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.