-
- Downloads
basic functions complete
Showing
- .eslintrc.json 26 additions, 0 deletions.eslintrc.json
- .gitignore 11 additions, 0 deletions.gitignore
- .npmignore 3 additions, 0 deletions.npmignore
- README.md 31 additions, 0 deletionsREADME.md
- TODO.md 8 additions, 0 deletionsTODO.md
- examples/src/app.ts 47 additions, 0 deletionsexamples/src/app.ts
- examples/src/server.ts 8 additions, 0 deletionsexamples/src/server.ts
- jest.config.js 20 additions, 0 deletionsjest.config.js
- package-lock.json 0 additions, 0 deletionspackage-lock.json
- package.json 59 additions, 0 deletionspackage.json
- src/index.spec.ts 0 additions, 0 deletionssrc/index.spec.ts
- src/index.ts 54 additions, 0 deletionssrc/index.ts
- stryker.conf.json 23 additions, 0 deletionsstryker.conf.json
- tsconfig-examples.json 21 additions, 0 deletionstsconfig-examples.json
- tsconfig.json 20 additions, 0 deletionstsconfig.json
.eslintrc.json
0 → 100644
.gitignore
0 → 100644
.npmignore
0 → 100644
README.md
0 → 100644
TODO.md
0 → 100644
examples/src/app.ts
0 → 100644
examples/src/server.ts
0 → 100644
jest.config.js
0 → 100644
package-lock.json
0 → 100644
Source diff could not be displayed: it is too large. Options to address this: view the blob.
package.json
0 → 100644
{ | ||
"name": "@br/metrics", | ||
"version": "1.0.0", | ||
"description": "A small express middleware to get base metrics for any node.js app", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"test": "jest", | ||
"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" | ||
}, | ||
"keywords": [ | ||
"metrics", | ||
"prometheus" | ||
], | ||
"author": "Dominik Sigmund <dominik.sigmund@br.de>", | ||
"license": "Unlicense", | ||
"dependencies": { | ||
"express": "^4.17.1", | ||
"prom-client": "^12.0.0" | ||
}, | ||
"devDependencies": { | ||
"@stryker-mutator/core": "^3.1.0", | ||
"@stryker-mutator/jest-runner": "^3.1.0", | ||
"@stryker-mutator/typescript": "^3.1.0", | ||
"@types/express": "^4.17.4", | ||
"@types/jest": "^25.1.4", | ||
"@types/node": "^13.9.1", | ||
"@types/superagent": "^4.1.7", | ||
"@types/supertest": "^2.0.8", | ||
"@typescript-eslint/eslint-plugin": "^2.24.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard-with-typescript": "^15.0.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-tsdoc": "^0.2.3", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"jest-html-reporters": "^1.2.1", | ||
"standard": "^14.3.3", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^25.2.1", | ||
"typescript": "^3.8.3" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-push": "npm run lint", | ||
"post-commit": "./ho-copy" | ||
} | ||
} | ||
} |
src/index.spec.ts
0 → 100644
src/index.ts
0 → 100644
stryker.conf.json
0 → 100644
tsconfig-examples.json
0 → 100755
tsconfig.json
0 → 100755
Please register or sign in to comment