From c33df38033ea589bf7f18d70de3b7923925c16e6 Mon Sep 17 00:00:00 2001
From: Dominik Sigmund <dominik.sigmund@br.de>
Date: Thu, 23 Apr 2020 23:25:32 +0200
Subject: [PATCH] cleanup

---
 .gitlab-ci.yml | 2 --
 .npmignore     | 3 ++-
 README.md      | 9 ++-------
 TODO.md        | 3 ---
 jest.config.js | 2 +-
 package.json   | 9 ++-------
 6 files changed, 7 insertions(+), 21 deletions(-)
 delete mode 100644 TODO.md

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cc391a8..ea926d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,6 @@ include:
     file: '/cicd/npm-audit.gitlab-ci.yml'
   - project: 'general/templates'
     file: '/cicd/sonarqube.gitlab-ci.yml'
-  - project: 'general/templates'
-    file: '/cicd/npm-outdated.gitlab-ci.yml' 
 
 variables:
   SONAR_PROJECT_KEY: metrics
diff --git a/.npmignore b/.npmignore
index e0b3277..26c7aba 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,3 +1,4 @@
 src/
 docs/
-examples/
\ No newline at end of file
+examples/
+.gitlab-ci.yml
\ No newline at end of file
diff --git a/README.md b/README.md
index a085915..83156b1 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,15 @@
 # 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.
 
 
 ## Installation
 
-- `npm config set @br:registry https://npm.br-edv.brnet.int`
-- `npm install --save @br/metrics`
+- `npm install --save @plastdev/metrics`
 
 ## Usage
 
-`import { Metrics } from '@br/metrics'`  
+`import { Metrics } from '@plastdev/metrics'`  
 `let metrics = new Metrics(options)`
 
 Note: The options Part may be omitted, as all parts are optional.  
diff --git a/TODO.md b/TODO.md
deleted file mode 100644
index f9c8075..0000000
--- a/TODO.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# TODO
-
-- publish to npm
diff --git a/jest.config.js b/jest.config.js
index 2fd36b4..b569c50 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -14,7 +14,7 @@ module.exports = {
     ['jest-html-reporters', {
       publicPath: './docs',
       filename: 'test-report.html',
-      pageTitle: 'BePo Backend :: Test Results'
+      pageTitle: 'Metrics :: Test Results'
     }]
   ]
 }
diff --git a/package.json b/package.json
index 3678086..9f4105d 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
 {
-  "name": "@br/metrics",
+  "name": "@plastdev/metrics",
   "version": "1.0.0",
   "description": "A small express middleware to get base metrics for any node.js app",
   "main": "dist/index.js",
@@ -10,7 +10,6 @@
     "test:mutation": "stryker run",
     "lint": "eslint 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",
     "build": "tsc",
     "build:examples": "tsc --project tsconfig-examples.json"
@@ -54,11 +53,7 @@
   },
   "husky": {
     "hooks": {
-      "pre-push": "npm run lint",
-      "post-commit": "./ho-copy"
+      "pre-push": "npm run lint"
     }
-  },
-  "publishConfig": {
-    "@br:registry": "https://npm.br-edv.brnet.int"
   }
 }
-- 
GitLab