fix(core): update

This commit is contained in:
Philipp Kunz 2024-06-06 16:48:19 +02:00
parent 6a644225d9
commit 9313de5c82
7 changed files with 5375 additions and 3127 deletions

View File

@ -1,128 +0,0 @@
# gitzone ci_default
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
cache:
paths:
- .npmci_cache/
key: '$CI_BUILD_STAGE'
stages:
- security
- test
- release
- metadata
before_script:
- pnpm install -g pnpm
- pnpm install -g @shipzone/npmci
- npmci npm prepare
# ====================
# security stage
# ====================
# ====================
# security stage
# ====================
auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
script:
- npmci command npm config set registry https://registry.npmjs.org
- npmci command pnpm audit --audit-level=high --prod
tags:
- lossless
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
script:
- npmci command npm config set registry https://registry.npmjs.org
- npmci command pnpm audit --audit-level=high --dev
tags:
- lossless
- docker
allow_failure: true
# ====================
# test stage
# ====================
testStable:
stage: test
script:
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
testBuild:
stage: test
script:
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
release:
stage: release
script:
- npmci node install stable
- npmci npm publish
only:
- tags
tags:
- lossless
- docker
- notpriv
# ====================
# metadata stage
# ====================
codequality:
stage: metadata
allow_failure: true
only:
- tags
script:
- npmci command npm install -g typescript
- npmci npm prepare
- npmci npm install
tags:
- lossless
- docker
- priv
trigger:
stage: metadata
script:
- npmci trigger
only:
- tags
tags:
- lossless
- docker
- notpriv
pages:
stage: metadata
script:
- npmci node install stable
- npmci npm install
- npmci command npm run buildDocs
tags:
- lossless
- docker
- notpriv
only:
- tags
artifacts:
expire_in: 1 week
paths:
- public
allow_failure: true

View File

@ -13,14 +13,15 @@
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.66", "@git.zone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.42", "@git.zone/tsrun": "^1.2.44",
"@gitzone/tstest": "^1.0.74", "@git.zone/tstest": "^1.0.77",
"@pushrocks/tapbundle": "^5.0.8", "@push.rocks/tapbundle": "^5.0.8",
"@types/node": "^20.4.1" "@types/node": "^20.14.2"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest-interfaces": "^2.0.1" "@api.global/typedrequest-interfaces": "^2.0.1",
"@tsclass/tsclass": "^4.0.54"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

8327
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, expectAsync, tap } from '@pushrocks/tapbundle'; import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as commonlog from '../ts/index.js'; import * as commonlog from '../ts/index.js';
tap.test('first test', async () => { tap.test('first test', async () => {

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo * autocreated commitinfo by @pushrocks/commitinfo
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartlog-interfaces', name: '@push.rocks/smartlog-interfaces',
version: '3.0.0', version: '3.0.1',
description: 'interfaces for the smartlog ecosystem' description: 'Defines interfaces for the smartlog ecosystem.'
} }

View File

@ -45,12 +45,13 @@ export type TRuntime = 'node' | 'chrome' | 'rust' | 'deno' | 'cloudflare_workers
* the log context e.g. what app in what version on what server * the log context e.g. what app in what version on what server
*/ */
export interface ILogContext { export interface ILogContext {
commitinfo?: plugins.tsclass.code.ICommitInfo;
company?: string; company?: string;
companyunit?: string; companyunit?: string;
containerName?: string; containerName?: string;
environment: TEnvironment; environment?: TEnvironment;
runtime: TRuntime; runtime?: TRuntime;
zone: string; zone?: string;
} }
export interface ILogCorrelation { export interface ILogCorrelation {

View File

@ -1,3 +1,10 @@
import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces'; import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
export { typedrequestInterfaces }; export { typedrequestInterfaces };
// tsclass scope
import * as tsclass from '@tsclass/tsclass';
export {
tsclass
}