diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 328dcb5..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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 @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 diff --git a/.snyk b/.snyk deleted file mode 100644 index 3cd806d..0000000 --- a/.snyk +++ /dev/null @@ -1,22 +0,0 @@ -# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. -version: v1.12.0 -# ignores vulnerabilities until expiry date; change duration by modifying expiry date -ignore: - 'npm:lodash:20180130': - - smartenv > beautylog > cli-table2 > lodash: - reason: None given - expires: '2018-07-07T20:45:00.571Z' - - smartenv > smartenv > beautylog > cli-table2 > lodash: - reason: None given - expires: '2018-07-07T20:45:00.571Z' - - smartenv > smartparam > beautylog > cli-table2 > lodash: - reason: None given - expires: '2018-07-07T20:45:00.571Z' - - smartenv > smartparam > beautylog > smartenv > beautylog > cli-table2 > lodash: - reason: None given - expires: '2018-07-07T20:45:00.571Z' - 'npm:shelljs:20140723': - - smartshell > shelljs: - reason: None given - expires: '2018-07-07T20:45:00.571Z' -patch: {} diff --git a/LICENSE b/LICENSE index eb3beb5..7583a48 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Lossless GmbH +Copyright (c) 2016 Task Venture Capital GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/assets/package_library.json b/assets/package_library.json deleted file mode 100644 index 09c50aa..0000000 --- a/assets/package_library.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "default": [ - "@bubblewrap/cli", - "@losslessone_private/lole", - "@gitzone_private/gitzone", - "@git.zone/tsbuild", - "@git.zone/tsdocker", - "@git.zone/tsrun", - "nativescript", - "typescript", - "npm-check" - ] -} \ No newline at end of file diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..9ab2d4b --- /dev/null +++ b/changelog.md @@ -0,0 +1,90 @@ +# Changelog + +## 2026-02-03 - 3.0.0 - BREAKING CHANGE(tools) +replace install functionality with a minimal placeholder CLI; remove installer, logging, path utilities, and related assets + +- Removed installer implementation (ts/tools.install.ts) and package library asset (assets/package_library.json). +- Removed logging and path utilities (ts/tools.logging.ts, ts/tools.paths.ts) and simplified plugins (ts/tools.plugins.ts) to only export smartcli. +- Reworked CLI (ts/tools.cli.ts) to a placeholder standard command that prints messages instead of running installs; internal CLI version set to 2.0.22. +- Module export/behavior changed: ts/index.ts now exports runCli and no longer auto-runs; tests updated to expect runCli. +- package.json updated: description changed, several dependencies removed (e.g. @push.rocks/smartlog, @push.rocks/smartshell), @types/node bumped to ^22.0.0, and assets removed from packaged files list. +- Removed project policy and metadata files: .snyk deleted and readme.md added with usage and legal information. + +## 2026-02-03 - 2.0.22 - core +Core maintenance release. + +- fix(core): update — minor core fixes and maintenance improvements. + +## 2026-02-03 - 2.0.23 - release tag +Release tag only — no recorded changelog details. + +- 2.0.23: release tag with no additional commit message. + +## 2020-10-05 - 2.0.3 - 2.0.21 - core (maintenance) +Series of maintenance releases containing repeated small core fixes. + +- Multiple commits "fix(core): update" applied across 2.0.3 through 2.0.21 addressing minor bugs and stability improvements. +- These releases are maintenance-focused; no user-facing feature additions recorded. + +## 2019-06-17 - 2.0.2 - core +Maintenance update to core. + +- fix(core): update — continued minor fixes and upkeep. + +## 2018-06-07 - 2.0.0 - 2.0.1 - policy/package fixes +Initial 2.0.x releases with policy and package fixes. + +- 2.0.0: fix(snyk policy): update — update to Snyk policy. +- 2.0.1: fix(package.json): fix private property — corrected package.json property. +- 2.0.2: release tag (later maintenance continued in subsequent 2.0.x). + +## 2018-06-07 - 1.0.9 - core (feature) +New core scope added. + +- feat(core): new tools scope — introduces a "tools" scope in core. + +## 2017-06-04 - 1.0.8 - release tag +Release tag only — no recorded changelog details. + +- 1.0.8: release tag with no additional commit message. + +## 2017-06-04 - 1.0.7 - cli +CLI update. + +- update cli — improvements/updates to the command-line interface. + +## 2017-05-28 - 1.0.6 / 1.0.5 - docs & CLI +Documentation and CLI additions. + +- 1.0.6: update README — documentation updates. +- 1.0.5: add cli.js — adds CLI entry point. + +## 2017-05-28 - 1.0.4 - maintenance and cleanups +Collection of maintenance, cleanup, and packaging updates for 1.0.4 over several commits. + +- update / cleanup — general code cleanups. +- Update packageLibrary.json — package metadata adjusted. +- added cli.js, added .npmignore — packaging and CLI support added. +- Consolidated multiple 1.0.4 changes across 2016–2017 into this release. + +## 2016-03-03 - 1.0.3 - tests +Test fix. + +- fix test.ts — test suite correction. + +## 2016-03-03 - 1.0.2 - CI +Continuous integration fix. + +- fix Travis — adjusts CI configuration. + +## 2016-03-02 - 1.0.1 - install/tests +Installer and tests improvements. + +- now installing things correctly — fixes installation behavior. +- create test / update — test additions and miscellaneous updates. + +## 2016-03-02 - 1.0.0 - initial release +Project initial structure and first release. + +- add structure / set up initial structure / cleanup — initial project layout and housekeeping. +- initial (2016-02-29 and 2016-02-24) — first commits establishing the repository. \ No newline at end of file diff --git a/package.json b/package.json index 1a8ab8d..1e54d31 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "2.0.23", "private": false, "type": "module", - "description": "setup your environment with the most important tools and update them easily.", + "description": "A CLI tool placeholder for development utilities.", "main": "dist_ts/index.js", "typings": "dist_ts/index.d.ts", "scripts": { @@ -36,10 +36,7 @@ "dependencies": { "@git.zone/tsrun": "^2.0.1", "@push.rocks/smartcli": "^4.0.20", - "@push.rocks/smartlog": "^3.1.10", - "@push.rocks/smartlog-destination-local": "^9.0.2", - "@push.rocks/smartshell": "^3.3.0", - "@types/node": "^25.2.0" + "@types/node": "^22.0.0" }, "files": [ "ts/**/*", @@ -48,7 +45,6 @@ "dist_*/**/*", "dist_ts/**/*", "dist_ts_web/**/*", - "assets/**/*", "cli.js", "npmextra.json", "readme.md" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf4fd2f..e94dfe3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,18 +14,9 @@ importers: '@push.rocks/smartcli': specifier: ^4.0.20 version: 4.0.20 - '@push.rocks/smartlog': - specifier: ^3.1.10 - version: 3.1.10 - '@push.rocks/smartlog-destination-local': - specifier: ^9.0.2 - version: 9.0.2 - '@push.rocks/smartshell': - specifier: ^3.3.0 - version: 3.3.0 '@types/node': - specifier: ^25.2.0 - version: 25.2.0 + specifier: ^22.0.0 + version: 22.19.8 devDependencies: '@git.zone/tsbuild': specifier: ^4.1.2 @@ -1385,9 +1376,6 @@ packages: '@types/node@22.19.8': resolution: {integrity: sha512-ebO/Yl+EAvVe8DnMfi+iaAyIqYdK0q/q0y0rw82INWEKJOBe6b/P3YWE8NW7oOlF/nXFNrHwhARrN/hdgDkraA==} - '@types/node@25.2.0': - resolution: {integrity: sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==} - '@types/ping@0.4.4': resolution: {integrity: sha512-ifvo6w2f5eJYlXm+HiVx67iJe8WZp87sfa683nlqED5Vnt9Z93onkokNoWqOG21EaE8fMxyKPobE+mkPEyxsdw==} @@ -3279,9 +3267,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici-types@7.16.0: - resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - unified@11.0.5: resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} @@ -5872,27 +5857,27 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/body-parser@1.19.6': dependencies: '@types/connect': 3.4.38 - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/buffer-json@2.0.3': {} '@types/clean-css@4.2.11': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 source-map: 0.6.1 '@types/connect@3.4.38': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/cors@2.8.19': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/debug@4.1.12': dependencies: @@ -5900,7 +5885,7 @@ snapshots: '@types/dns-packet@5.6.5': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/elliptic@6.4.18': dependencies: @@ -5908,7 +5893,7 @@ snapshots: '@types/express-serve-static-core@5.1.1': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/qs': 6.14.0 '@types/range-parser': 1.2.7 '@types/send': 1.2.1 @@ -5922,7 +5907,7 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/hast@3.0.4': dependencies: @@ -5944,7 +5929,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/mdast@4.0.4': dependencies: @@ -5958,20 +5943,16 @@ snapshots: '@types/mute-stream@0.0.4': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/node-forge@1.3.14': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/node@22.19.8': dependencies: undici-types: 6.21.0 - '@types/node@25.2.0': - dependencies: - undici-types: 7.16.0 - '@types/ping@0.4.4': {} '@types/qs@6.14.0': {} @@ -5986,22 +5967,22 @@ snapshots: '@types/send@1.2.1': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/serve-static@2.2.0': dependencies: '@types/http-errors': 2.0.5 - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/symbol-tree@3.2.5': {} '@types/tar-stream@3.1.4': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/through2@2.0.41': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/trusted-types@2.0.7': {} @@ -6027,11 +6008,11 @@ snapshots: '@types/ws@8.18.1': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 '@types/yauzl@2.10.3': dependencies: - '@types/node': 25.2.0 + '@types/node': 22.19.8 optional: true '@ungap/structured-clone@1.3.0': {} @@ -6444,7 +6425,7 @@ snapshots: engine.io@6.6.4: dependencies: '@types/cors': 2.8.19 - '@types/node': 25.2.0 + '@types/node': 22.19.8 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.7.2 @@ -8234,8 +8215,6 @@ snapshots: undici-types@6.21.0: {} - undici-types@7.16.0: {} - unified@11.0.5: dependencies: '@types/unist': 3.0.3 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..406d1f0 --- /dev/null +++ b/readme.md @@ -0,0 +1,42 @@ +# @git.zone/tools 🛠️ + +A CLI tool placeholder for development utilities. + +## Issue Reporting and Security + +For reporting bugs, issues, or security vulnerabilities, please visit [community.foss.global/](https://community.foss.global/). This is the central community hub for all issue reporting. Developers who sign and comply with our contribution agreement and go through identification can also get a [code.foss.global/](https://code.foss.global/) account to submit Pull Requests directly. + +## Installation 📦 + +```bash +npm install -g @git.zone/tools +``` + +## Usage 🚀 + +```bash +gtools +``` + +Currently a placeholder CLI with no commands implemented yet. + +## License and Legal Information + +This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file. + +**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file. + +### Trademarks + +This project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH or third parties, and are not included within the scope of the MIT license granted herein. + +Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines or the guidelines of the respective third-party owners, and any usage must be approved in writing. Third-party trademarks used herein are the property of their respective owners and used only in a descriptive manner, e.g. for an implementation of an API or similar. + +### Company Information + +Task Venture Capital GmbH +Registered at District Court Bremen HRB 35230 HB, Germany + +For any legal inquiries or further information, please contact us via email at hello@task.vc. + +By using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works. diff --git a/test/test.node.ts b/test/test.node.ts index 36f67fe..9fcc508 100644 --- a/test/test.node.ts +++ b/test/test.node.ts @@ -1,14 +1,9 @@ import { expect, tap } from '@git.zone/tstest/tapbundle'; -import * as tools from '../ts/tools.install.js'; +import * as tools from '../ts/index.js'; -tap.test('should have install function exported', async () => { - expect(typeof tools.install).toEqual('function'); -}); - -tap.test('should handle unknown package set', async () => { - // This will just log a warning, not throw - await tools.install('unknown'); +tap.test('should export runCli function', async () => { + expect(typeof tools.runCli).toEqual('function'); }); export default tap.start(); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index bfb508e..215d79b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -1,8 +1,8 @@ /** - * autocreated commitinfo by @pushrocks/commitinfo + * autocreated commitinfo by @push.rocks/commitinfo */ export const commitinfo = { name: '@git.zone/tools', - version: '2.0.23', - description: 'setup your environment with the most important tools and update them easily.' + version: '3.0.0', + description: 'A CLI tool placeholder for development utilities.' } diff --git a/ts/index.ts b/ts/index.ts index 80134e4..0c44682 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,9 +1,7 @@ -import * as plugins from './tools.plugins.js'; import * as cli from './tools.cli.js'; export const runCli = async () => { await cli.run(); }; -// Auto-run when called directly runCli(); diff --git a/ts/tools.cli.ts b/ts/tools.cli.ts index fd268bf..240d47e 100644 --- a/ts/tools.cli.ts +++ b/ts/tools.cli.ts @@ -1,13 +1,13 @@ import * as plugins from './tools.plugins.js'; -import * as toolsInstall from './tools.install.js'; export const run = async () => { const toolsCli = new plugins.smartcli.Smartcli(); - toolsCli.addCommand('install').subscribe(async (argvArg) => { - toolsInstall.install('default'); + toolsCli.standardCommand().subscribe(async (argvArg) => { + console.log('@git.zone/tools - CLI placeholder'); + console.log('No commands implemented yet.'); }); - toolsCli.addVersion('no version set'); + toolsCli.addVersion('2.0.22'); toolsCli.startParse(); }; diff --git a/ts/tools.install.ts b/ts/tools.install.ts deleted file mode 100644 index d015b42..0000000 --- a/ts/tools.install.ts +++ /dev/null @@ -1,38 +0,0 @@ -import * as plugins from './tools.plugins.js'; -import * as paths from './tools.paths.js'; -import { logger } from './tools.logging.js'; - -const installExec = async (packageNames: string[]) => { - const smartshellInstance = new plugins.smartshell.Smartshell({ - executor: 'bash', - }); - - let installString = ''; - for (const packageName of packageNames) { - logger.log('info', `Found ${packageName}!`); - installString = installString + `${packageName} `; - } - // lets remove old packages - const uninstallCommand = `npm uninstall -g ${installString}`; - const installCommand = `npm install -g ${installString}`; - logger.log('info', `uninstalling old packages with "${uninstallCommand}"`); - await smartshellInstance.exec(uninstallCommand); - logger.log('info', `installing tools with ${installCommand}`); - await smartshellInstance.exec(installCommand); - logger.log('ok', `installed tools successfully!`); -}; - -const packageLibrary = JSON.parse( - plugins.fs.readFileSync(plugins.path.join(paths.assetsDir, 'package_library.json'), 'utf8') -); - -export const install = async (packageSetArg: string) => { - switch (packageSetArg) { - case 'default': - await installExec(packageLibrary.default); - break; - default: - logger.log('warn', 'no set has been specified'); - break; - } -}; diff --git a/ts/tools.logging.ts b/ts/tools.logging.ts deleted file mode 100644 index 96094c9..0000000 --- a/ts/tools.logging.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as plugins from './tools.plugins.js'; - -export const logger = new plugins.smartlog.Smartlog({ - logContext: { - company: 'Some Company', - companyunit: 'Some CompanyUnit', - containerName: 'Some Containername', - environment: 'local', - runtime: 'node', - zone: 'gitzone', - }, - minimumLogLevel: 'silly', -}); - -logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal()); diff --git a/ts/tools.paths.ts b/ts/tools.paths.ts deleted file mode 100644 index 5616b58..0000000 --- a/ts/tools.paths.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as plugins from './tools.plugins.js'; -import { fileURLToPath } from 'url'; - -const __filename = fileURLToPath(import.meta.url); -const __dirname = plugins.path.dirname(__filename); - -export const packageBase = plugins.path.join(__dirname, '../'); -export const assetsDir = plugins.path.join(packageBase, './assets'); diff --git a/ts/tools.plugins.ts b/ts/tools.plugins.ts index 76933b2..16edddd 100644 --- a/ts/tools.plugins.ts +++ b/ts/tools.plugins.ts @@ -1,11 +1,4 @@ -// node native -import * as path from 'path'; -import * as fs from 'fs'; - // push.rocks scope -import * as smartlog from '@push.rocks/smartlog'; -import * as smartlogDestinationLocal from '@push.rocks/smartlog-destination-local'; import * as smartcli from '@push.rocks/smartcli'; -import * as smartshell from '@push.rocks/smartshell'; -export { smartlog, smartlogDestinationLocal, path, fs, smartcli, smartshell }; +export { smartcli }; diff --git a/tslint.json b/tslint.json deleted file mode 100644 index d4ea2e9..0000000 --- a/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": ["tslint:latest", "tslint-config-prettier"], - "rules": { - "semicolon": [true, "always"], - "no-console": false, - "ordered-imports": false, - "object-literal-sort-keys": false, - "member-ordering": { - "options":{ - "order": [ - "static-method" - ] - } - } - }, - "defaultSeverity": "warning" -}