feat(core): Add TypeScript configuration and update package dependencies and scripts
This commit is contained in:
		
							
								
								
									
										137
									
								
								.gitlab-ci.yml
									
									
									
									
									
								
							
							
						
						
									
										137
									
								
								.gitlab-ci.yml
									
									
									
									
									
								
							| @@ -1,137 +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 |  | ||||||
|  |  | ||||||
| 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 @gitzone/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 |  | ||||||
							
								
								
									
										19
									
								
								changelog.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								changelog.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | # Changelog | ||||||
|  |  | ||||||
|  | ## 2024-12-27 - 1.1.0 - feat(core) | ||||||
|  | Add TypeScript configuration and update package dependencies and scripts | ||||||
|  |  | ||||||
|  | - Added 'tsconfig.json' for TypeScript configuration, setting target to ES2022 and module to NodeNext. | ||||||
|  | - Updated the package name and author in 'package.json'. | ||||||
|  | - Fixed module paths for imports in 'test/test.ts'. | ||||||
|  | - Removed '.gitlab-ci.yml'. | ||||||
|  |  | ||||||
|  | ## 2023-06-09 - 1.0.5 to 1.0.6 - core updates | ||||||
|  | Routine core updates and version bump | ||||||
|  |  | ||||||
|  | - Core update implemented in version 1.0.5 | ||||||
|  |  | ||||||
|  | ## 2020-09-14 - 1.0.1 to 1.0.5 - core updates | ||||||
|  | Routine core updates and version bump | ||||||
|  |  | ||||||
|  | - Sequential core updates from version 1.0.1 to 1.0.5 | ||||||
							
								
								
									
										2
									
								
								license
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								license
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| Copyright (c) 2020 Lossless GmbH (hello@lossless.com) | Copyright (c) 2020 Task Venture Capital GmbH (hello@task.vc) | ||||||
|  |  | ||||||
| Permission is hereby granted, free of charge, to any person obtaining a copy | Permission is hereby granted, free of charge, to any person obtaining a copy | ||||||
| of this software and associated documentation files (the "Software"), to deal | of this software and associated documentation files (the "Software"), to deal | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								package.json
									
									
									
									
									
								
							| @@ -1,21 +1,23 @@ | |||||||
| { | { | ||||||
|   "name": "@social.io_private/interfaces", |   "name": "@social.io/interfaces", | ||||||
|   "version": "1.0.6", |   "version": "1.0.6", | ||||||
|   "private": false, |   "private": false, | ||||||
|   "description": "an interface package for social.io", |   "description": "an interface package for social.io", | ||||||
|   "main": "dist_ts/index.js", |   "main": "dist_ts/index.js", | ||||||
|   "typings": "dist_ts/index.d.ts", |   "typings": "dist_ts/index.d.ts", | ||||||
|   "author": "Lossless GmbH", |   "type": "module", | ||||||
|   "license": "UNLICENSED", |   "author": "Task Venture Capital GmbH", | ||||||
|  |   "license": "MIT", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|     "test": "(tstest test/)", |     "test": "(tstest test/)", | ||||||
|     "build": "(tsbuild --web)", |     "build": "(tsbuild --web)", | ||||||
|     "format": "(gitzone format)" |     "format": "(gitzone format)" | ||||||
|   }, |   }, | ||||||
|   "devDependencies": { |   "devDependencies": { | ||||||
|     "@gitzone/tsbuild": "^2.1.66", |     "@git.zone/tsbuild": "^2.1.66", | ||||||
|     "@gitzone/tstest": "^1.0.74", |     "@git.zone/tsrun": "^1.3.3", | ||||||
|     "@pushrocks/tapbundle": "^5.0.4", |     "@git.zone/tstest": "^1.0.74", | ||||||
|  |     "@push.rocks/tapbundle": "^5.0.4", | ||||||
|     "@types/node": "^20.2.5" |     "@types/node": "^20.2.5" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|   | |||||||
							
								
								
									
										11253
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										11253
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										0
									
								
								readme.hints.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								readme.hints.md
									
									
									
									
									
										Normal file
									
								
							| @@ -1,5 +1,5 @@ | |||||||
| import { expect, tap } from '@pushrocks/tapbundle'; | import { expect, tap } from '@push.rocks/tapbundle'; | ||||||
| import * as interfaces from '../ts/index'; | import * as interfaces from '../ts/index.js'; | ||||||
|  |  | ||||||
| tap.test('first test', async () => { | tap.test('first test', async () => { | ||||||
|   interfaces; |   interfaces; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| /** | /** | ||||||
|  * autocreated commitinfo by @pushrocks/commitinfo |  * autocreated commitinfo by @push.rocks/commitinfo | ||||||
|  */ |  */ | ||||||
| export const commitinfo = { | export const commitinfo = { | ||||||
|   name: '@social.io_private/interfaces', |   name: '@social.io/interfaces', | ||||||
|   version: '1.0.6', |   version: '1.1.0', | ||||||
|   description: 'an interface package for social.io' |   description: 'an interface package for social.io' | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | { | ||||||
|  |   "compilerOptions": { | ||||||
|  |     "experimentalDecorators": true, | ||||||
|  |     "useDefineForClassFields": false, | ||||||
|  |     "target": "ES2022", | ||||||
|  |     "module": "NodeNext", | ||||||
|  |     "moduleResolution": "NodeNext", | ||||||
|  |     "esModuleInterop": true, | ||||||
|  |     "verbatimModuleSyntax": true | ||||||
|  |   }, | ||||||
|  |   "exclude": [ | ||||||
|  |     "dist_*/**/*.d.ts" | ||||||
|  |   ] | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user