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
image: node:latest 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: cache:
paths: paths:
- node_modules/ - node_modules/
stages: stages:
- build
- test - test
- quality
- publish - publish
build:
stage: build
script:
- npm install --production
test: test:
stage: test stage: test
before_script: before_script:
- npm install -g jest - npm install -g jest
- npm install
script: script:
- jest - jest
artifacts: artifacts:
...@@ -41,10 +22,17 @@ test: ...@@ -41,10 +22,17 @@ test:
- docs/test-report.html - docs/test-report.html
- docs/coverage/lcov.info - docs/coverage/lcov.info
audit:
stage: test
script:
- npm audit
publish: publish:
only: only:
refs: refs:
- tags - tags
stage: publish stage: publish
script: script:
- npm install --production
- npm publish - npm publish
tag-version-prefix="" tag-version-prefix=""
strict-ssl=false strict-ssl=false
@general:registry=https://gitlab.br.de/api/v4/projects/6/packages/npm/ @general:registry=https://gitlab.ard.de/api/v4/projects/930/packages/npm/
//gitlab.br.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN} //gitlab.ard.de/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}
//gitlab.br.de/api/v4/projects/6/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. A real simple logger application.
May Optional Log to A File and a loki-server via http or udp. 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. ...@@ -7,11 +7,11 @@ May Optional Log to A File and a loki-server via http or udp.
## Installation ## Installation
- `npm install --save @general/log` - `npm install --save @libs/log`
## Usage ## Usage
`const Log = require('@general/log')` `const Log = require('@libs/log')`
`let log = new Log(options)` `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 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
This diff is collapsed.
{ {
"name": "@general/log", "name": "@libs/log",
"version": "3.1.0", "version": "3.1.0",
"description": "A simple Logger with Options!", "description": "A simple Logger with Options!",
"main": "index.js", "main": "index.js",
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"license": "ISC", "license": "ISC",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitlab.br.de/general/log" "url": "https://gitlab.ard.de/libs/log"
}, },
"dependencies": { "dependencies": {
"got": "^12.6.0" "got": "^12.6.0"
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"jest": "^29.5.0" "jest": "^29.5.0"
}, },
"publishConfig": { "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": { "jest": {
"collectCoverage": true, "collectCoverage": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment