Skip to content
Snippets Groups Projects
Commit c33df380 authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

cleanup

parent 01faef75
Branches
No related tags found
1 merge request!1Master to main
...@@ -5,8 +5,6 @@ include: ...@@ -5,8 +5,6 @@ include:
file: '/cicd/npm-audit.gitlab-ci.yml' file: '/cicd/npm-audit.gitlab-ci.yml'
- project: 'general/templates' - project: 'general/templates'
file: '/cicd/sonarqube.gitlab-ci.yml' file: '/cicd/sonarqube.gitlab-ci.yml'
- project: 'general/templates'
file: '/cicd/npm-outdated.gitlab-ci.yml'
variables: variables:
SONAR_PROJECT_KEY: metrics SONAR_PROJECT_KEY: metrics
......
src/ src/
docs/ docs/
examples/ examples/
.gitlab-ci.yml
\ No newline at end of file
# Metrics # Metrics
[![pipeline status](https://it-devops-01.br-edv.brnet.int/general/metrics/badges/master/pipeline.svg)](https://it-devops-01.br-edv.brnet.int/general/metrics/commits/master)
[![coverage report](https://it-devops-01.br-edv.brnet.int/general/metrics/badges/master/coverage.svg)](https://it-devops-01.br-edv.brnet.int/general/metrics/commits/master)
[![Quality Gate Status](https://it-devops-01.br-edv.brnet.int:8999/api/project_badges/measure?project=metrics&metric=alert_status)](https://it-devops-01.br-edv.brnet.int:8999/dashboard?id=metrics)
A small express middleware to get base metrics for any node.js app. A small express middleware to get base metrics for any node.js app.
## Installation ## Installation
- `npm config set @br:registry https://npm.br-edv.brnet.int` - `npm install --save @plastdev/metrics`
- `npm install --save @br/metrics`
## Usage ## Usage
`import { Metrics } from '@br/metrics'` `import { Metrics } from '@plastdev/metrics'`
`let metrics = new Metrics(options)` `let metrics = new Metrics(options)`
Note: The options Part may be omitted, as all parts are optional. Note: The options Part may be omitted, as all parts are optional.
......
# TODO
- publish to npm
...@@ -14,7 +14,7 @@ module.exports = { ...@@ -14,7 +14,7 @@ module.exports = {
['jest-html-reporters', { ['jest-html-reporters', {
publicPath: './docs', publicPath: './docs',
filename: 'test-report.html', filename: 'test-report.html',
pageTitle: 'BePo Backend :: Test Results' pageTitle: 'Metrics :: Test Results'
}] }]
] ]
} }
{ {
"name": "@br/metrics", "name": "@plastdev/metrics",
"version": "1.0.0", "version": "1.0.0",
"description": "A small express middleware to get base metrics for any node.js app", "description": "A small express middleware to get base metrics for any node.js app",
"main": "dist/index.js", "main": "dist/index.js",
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
"test:mutation": "stryker run", "test:mutation": "stryker run",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"lint:fix": "eslint --fix src/**/*.ts", "lint:fix": "eslint --fix src/**/*.ts",
"sast": "sonar-scanner -Dsonar.projectKey=metrics -Dsonar.sources=src/ -Dsonar.host.url=http://it-devops-01.br-edv.brnet.int:9000 -Dsonar.login=0f940d3f0fc8f7d80aeb3e1ebde7232913a818d3",
"check": "npm audit && npm outdated", "check": "npm audit && npm outdated",
"build": "tsc", "build": "tsc",
"build:examples": "tsc --project tsconfig-examples.json" "build:examples": "tsc --project tsconfig-examples.json"
...@@ -54,11 +53,7 @@ ...@@ -54,11 +53,7 @@
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"pre-push": "npm run lint", "pre-push": "npm run lint"
"post-commit": "./ho-copy"
} }
},
"publishConfig": {
"@br:registry": "https://npm.br-edv.brnet.int"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment