3 Commits

Author SHA1 Message Date
jkunz c935b33bdc chore: remove .gitlab-ci.yml 2026-03-01 18:57:02 +00:00
philkunz 4e9ceb4f8e 2.0.4 2024-11-18 15:04:07 +01:00
philkunz 8f4bc779e2 fix(core): Documentation and test coverage updates 2024-11-18 15:04:07 +01:00
4 changed files with 8 additions and 140 deletions
-138
View File
@@ -1,138 +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
# ====================
# security stage
# ====================
mirror:
stage: security
script:
- npmci git mirror
only:
- tags
tags:
- lossless
- docker
- notpriv
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
stage: security
script:
- npmci npm prepare
- npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=dev
tags:
- docker
allow_failure: true
# ====================
# test stage
# ====================
testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- docker
testBuild:
stage: test
script:
- npmci npm prepare
- 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 tslint typescript
- npmci npm prepare
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- lossless
- docker
- priv
trigger:
stage: metadata
script:
- npmci trigger
only:
- tags
tags:
- lossless
- docker
- notpriv
pages:
stage: metadata
script:
- npmci node install lts
- npmci command npm install -g @git.zone/tsdoc
- npmci npm prepare
- npmci npm install
- npmci command tsdoc
tags:
- lossless
- docker
- notpriv
only:
- tags
artifacts:
expire_in: 1 week
paths:
- public
allow_failure: true
+6
View File
@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2024-11-18 - 2.0.4 - fix(core)
Documentation and test coverage updates
- Comprehensive examples added to readme.md.
- Expanded test coverage for mime type detection.
## 2024-11-18 - 2.0.3 - fix(core) ## 2024-11-18 - 2.0.3 - fix(core)
Update dependencies and optimize type imports Update dependencies and optimize type imports
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/smartmime", "name": "@push.rocks/smartmime",
"version": "2.0.3", "version": "2.0.4",
"private": false, "private": false,
"description": "A module for detecting MIME types with support for binary and text file distinctions.", "description": "A module for detecting MIME types with support for binary and text file distinctions.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartmime', name: '@push.rocks/smartmime',
version: '2.0.3', version: '2.0.4',
description: 'A module for detecting MIME types with support for binary and text file distinctions.' description: 'A module for detecting MIME types with support for binary and text file distinctions.'
} }