Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
metrics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libs
metrics
Commits
c33df380
Commit
c33df380
authored
5 years ago
by
Sigmund, Dominik
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
01faef75
Branches
Branches containing commit
No related tags found
1 merge request
!1
Master to main
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
.gitlab-ci.yml
+0
-2
0 additions, 2 deletions
.gitlab-ci.yml
.npmignore
+2
-1
2 additions, 1 deletion
.npmignore
README.md
+2
-7
2 additions, 7 deletions
README.md
TODO.md
+0
-3
0 additions, 3 deletions
TODO.md
jest.config.js
+1
-1
1 addition, 1 deletion
jest.config.js
package.json
+2
-7
2 additions, 7 deletions
package.json
with
7 additions
and
21 deletions
.gitlab-ci.yml
+
0
−
2
View file @
c33df380
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
.npmignore
+
2
−
1
View file @
c33df380
src/
src/
docs/
docs/
examples/
examples/
.gitlab-ci.yml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
README.md
+
2
−
7
View file @
c33df380
# Metrics
# Metrics
[

](https://it-devops-01.br-edv.brnet.int/general/metrics/commits/master)
[

](https://it-devops-01.br-edv.brnet.int/general/metrics/commits/master)
[

](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.
...
...
This diff is collapsed.
Click to expand it.
TODO.md
deleted
100644 → 0
+
0
−
3
View file @
01faef75
# TODO
-
publish to npm
This diff is collapsed.
Click to expand it.
jest.config.js
+
1
−
1
View file @
c33df380
...
@@ -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
'
}]
}]
]
]
}
}
This diff is collapsed.
Click to expand it.
package.json
+
2
−
7
View file @
c33df380
{
{
"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"
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment