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

Moved

parent 55f1f3a3
No related branches found
No related tags found
1 merge request!1Update index.test.js, examples/all-options.js, examples/log-to-file.js,...
Pipeline #7256 failed
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
image: node:latest
include:
- project: 'general/templates'
file: '/cicd/SAST-nodejs.gitlab-ci.yml'
- project: 'general/templates'
file: '/cicd/npm-audit.gitlab-ci.yml'
- project: 'general/templates'
file: '/cicd/sonarqube.gitlab-ci.yml'
variables:
SONAR_PROJECT_KEY: argos-log
SONAR_TOKEN: 11922a8e774494f51e1d2f0e695949e4073e7df8
NPM_REGISTRY: https://npm.br-edv.brnet.int
NPM_TOKEN: 5w2Gy80rdH+2Tch0afNI6Q==
cache:
paths:
- node_modules/
stages:
- build
- test
- quality
- publish
build:
stage: build
script:
- npm install --production
test:
stage: test
before_script:
- npm install -g jest
- npm install
script:
- jest
artifacts:
......@@ -41,10 +22,17 @@ test:
- docs/test-report.html
- docs/coverage/lcov.info
audit:
stage: test
script:
- npm audit
publish:
only:
refs:
- tags
stage: publish
script:
- npm install --production
- npm publish
tag-version-prefix=""
strict-ssl=false
@general:registry=https://gitlab.br.de/api/v4/projects/6/packages/npm/
//gitlab.br.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}
//gitlab.br.de/api/v4/projects/6/packages/npm/:_authToken=${CI_JOB_TOKEN}
@general:registry=https://gitlab.ard.de/api/v4/projects/930/packages/npm/
//gitlab.ard.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}
//gitlab.ard.de/api/v4/projects/930/packages/npm/:_authToken=${CI_JOB_TOKEN}
# @general/log
# @libs/log
A real simple logger application.
May Optional Log to A File and a loki-server via http or udp.
......@@ -7,11 +7,11 @@ May Optional Log to A File and a loki-server via http or udp.
## Installation
- `npm install --save @general/log`
- `npm install --save @libs/log`
## Usage
`const Log = require('@general/log')`
`const Log = require('@libs/log')`
`let log = new Log(options)`
Note: The options Part may be omitted, as all parts are optional, but using the name is recommended, as without it, the package-name will be used
......
package-lock.json 100755 → 100644
+ 234
2969
View file @ 630c08e4
This diff is collapsed.
{
"name": "@general/log",
"name": "@libs/log",
"version": "3.1.0",
"description": "A simple Logger with Options!",
"main": "index.js",
......@@ -10,7 +10,7 @@
"license": "ISC",
"repository": {
"type": "git",
"url": "https://gitlab.br.de/general/log"
"url": "https://gitlab.ard.de/libs/log"
},
"dependencies": {
"got": "^12.6.0"
......@@ -19,7 +19,7 @@
"jest": "^29.5.0"
},
"publishConfig": {
"@general:registry": "https://gitlab.br.de/api/v4/projects/6/packages/npm/"
"@general:registry": "https://gitlab.ard.de/api/v4/projects/930/packages/npm/"
},
"jest": {
"collectCoverage": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment