Compare commits

...

3 Commits

Author SHA1 Message Date
b0116a7967 4.0.1 2022-03-21 18:21:07 +01:00
6dfdfd41b9 fix(core): update 2022-03-21 18:21:07 +01:00
2e9bc0db42 4.0.0 2022-03-21 08:30:50 +01:00
6 changed files with 27 additions and 30 deletions

View File

@ -12,6 +12,9 @@ stages:
- release - release
- metadata - metadata
before_script:
- npm install -g @shipzone/npmci
# ==================== # ====================
# security stage # security stage
# ==================== # ====================
@ -26,16 +29,29 @@ mirror:
- docker - docker
- notpriv - notpriv
audit: auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
script:
- npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high - npmci command npm audit --audit-level=high --only=dev
tags: tags:
- docker - docker
allow_failure: true
# ==================== # ====================
# test stage # test stage
@ -84,10 +100,9 @@ codequality:
only: only:
- tags - tags
script: script:
- npmci command npm install -g tslint typescript - npmci command npm install -g typescript
- npmci npm prepare - npmci npm prepare
- npmci npm install - npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags: tags:
- lossless - lossless
- docker - docker

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "current file", "command": "npm test",
"type": "node", "name": "Run npm test",
"request": "launch", "request": "launch",
"args": [ "type": "node-terminal"
"${relativeFile}"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "test.ts",
"type": "node",
"request": "launch",
"args": [
"test/test.ts"
],
"runtimeArgs": ["-r", "@gitzone/tsrun"],
"cwd": "${workspaceRoot}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
} }
] ]
} }

View File

@ -9,7 +9,7 @@
"githost": "gitlab.com", "githost": "gitlab.com",
"gitscope": "pushrocks", "gitscope": "pushrocks",
"gitrepo": "early", "gitrepo": "early",
"shortDescription": "minimal and fast loading plugin for startup time measuring", "description": "minimal and fast loading plugin for startup time measuring",
"npmPackagename": "@pushrocks/early", "npmPackagename": "@pushrocks/early",
"license": "MIT" "license": "MIT"
} }

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/early", "name": "@pushrocks/early",
"version": "3.0.7", "version": "4.0.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/early", "name": "@pushrocks/early",
"version": "3.0.7", "version": "4.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@gitzone/tsbuild": "^2.1.60", "@gitzone/tsbuild": "^2.1.60",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/early", "name": "@pushrocks/early",
"version": "3.0.7", "version": "4.0.1",
"private": false, "private": false,
"description": "minimal and fast loading plugin for startup time measuring", "description": "minimal and fast loading plugin for startup time measuring",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -1,7 +1,7 @@
import { expect, expectAsync, tap } from '@pushrocks/tapbundle'; import { expect, expectAsync, tap } from '@pushrocks/tapbundle';
import * as smartdelay from '@pushrocks/smartdelay'; import * as smartdelay from '@pushrocks/smartdelay';
import * as early from '../ts/index.js' import * as early from '../ts/index.js';
tap.test('.start()', async () => { tap.test('.start()', async () => {
process.env.CLI_CALL_MODULENAME = 'early'; process.env.CLI_CALL_MODULENAME = 'early';