Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| abaeb7be6c | |||
| ab714377ba | |||
| 450b3ba379 | |||
| 0daae0bd07 | |||
| 826f3a6c63 | |||
| c1a4671ce1 | |||
| 73a6d5bc31 | |||
| e15a569391 | |||
| 74809bd8d4 | |||
| 5b852d9602 |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -15,8 +15,6 @@ node_modules/
|
|||||||
|
|
||||||
# builds
|
# builds
|
||||||
dist/
|
dist/
|
||||||
dist_web/
|
dist_*/
|
||||||
dist_serve/
|
|
||||||
dist_ts_web/
|
|
||||||
|
|
||||||
# custom
|
# custom
|
||||||
119
.gitlab-ci.yml
119
.gitlab-ci.yml
@@ -1,119 +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
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
snyk:
|
|
||||||
stage: security
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci command npm install -g snyk
|
|
||||||
- npmci command npm install --ignore-scripts
|
|
||||||
- npmci command snyk test
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
# ====================
|
|
||||||
# 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
|
|
||||||
- priv
|
|
||||||
|
|
||||||
testBuild:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install lts
|
|
||||||
- npmci npm install
|
|
||||||
- npmci command npm run build
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
release:
|
|
||||||
stage: release
|
|
||||||
script:
|
|
||||||
- npmci node install lts
|
|
||||||
- npmci npm publish
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
# ====================
|
|
||||||
# metadata stage
|
|
||||||
# ====================
|
|
||||||
codequality:
|
|
||||||
stage: metadata
|
|
||||||
allow_failure: true
|
|
||||||
script:
|
|
||||||
- npmci command npm install -g tslint typescript
|
|
||||||
- npmci npm install
|
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- priv
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
stage: metadata
|
|
||||||
script:
|
|
||||||
- npmci trigger
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
|
|
||||||
pages:
|
|
||||||
image: hosttoday/ht-docker-dbase:npmci
|
|
||||||
services:
|
|
||||||
- docker:stable-dind
|
|
||||||
stage: metadata
|
|
||||||
script:
|
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm install
|
|
||||||
- npmci command tsdoc
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
artifacts:
|
|
||||||
expire_in: 1 week
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
allow_failure: true
|
|
||||||
22
.snyk
22
.snyk
@@ -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: {}
|
|
||||||
29
.vscode/launch.json
vendored
Normal file
29
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "current file",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"args": [
|
||||||
|
"${relativeFile}"
|
||||||
|
],
|
||||||
|
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"protocol": "inspector",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "test.ts",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"args": [
|
||||||
|
"test/test.ts"
|
||||||
|
],
|
||||||
|
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"protocol": "inspector",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"json.schemas": [
|
||||||
|
{
|
||||||
|
"fileMatch": ["/npmextra.json"],
|
||||||
|
"schema": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"npmci": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for npmci"
|
||||||
|
},
|
||||||
|
"gitzone": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "settings for gitzone",
|
||||||
|
"properties": {
|
||||||
|
"projectType": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["website", "element", "service", "npm", "wcc"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
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
|
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
|
||||||
|
|||||||
28
README.md
28
README.md
@@ -1,28 +0,0 @@
|
|||||||
# @gitzone/tools
|
|
||||||
setup your environment with the most important tools and update them easily.
|
|
||||||
|
|
||||||
## Availabililty and Links
|
|
||||||
* [npmjs.org (npm package)](https://www.npmjs.com/package/@gitzone/tools)
|
|
||||||
* [gitlab.com (source)](https://gitlab.com/gitzone/tools)
|
|
||||||
* [github.com (source mirror)](https://github.com/gitzone/tools)
|
|
||||||
* [docs (typedoc)](https://gitzone.gitlab.io/tools/)
|
|
||||||
|
|
||||||
## Status for master
|
|
||||||
[](https://gitlab.com/gitzone/tools/commits/master)
|
|
||||||
[](https://gitlab.com/gitzone/tools/commits/master)
|
|
||||||
[](https://www.npmjs.com/package/@gitzone/tools)
|
|
||||||
[](https://snyk.io/test/npm/@gitzone/tools)
|
|
||||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
|
||||||
[](https://nodejs.org/dist/latest-v10.x/docs/api/)
|
|
||||||
[](https://prettier.io/)
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Use TypeScript for best in class instellisense.
|
|
||||||
|
|
||||||
For further information read the linked docs at the top of this readme.
|
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
|
||||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
|
||||||
|
|
||||||
[](https://maintainedby.lossless.com)
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"default":[
|
|
||||||
"@bubblewrap/cli",
|
|
||||||
"@losslessone_private/lole",
|
|
||||||
"@gitzone_private/gitzone",
|
|
||||||
"@gitzone/tsbuild",
|
|
||||||
"@gitzone/tsdocker",
|
|
||||||
"@gitzone/tsrun",
|
|
||||||
"nativescript",
|
|
||||||
"typescript",
|
|
||||||
"tslint",
|
|
||||||
"npm-check",
|
|
||||||
""
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
||||||
90
changelog.md
Normal file
90
changelog.md
Normal file
@@ -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.
|
||||||
3
cli.js
3
cli.js
@@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
process.env.CLI_CALL = 'true';
|
process.env.CLI_CALL = 'true';
|
||||||
require('./dist/index');
|
const cliTool = require('./dist_ts/index');
|
||||||
|
cliTool.runCli();
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
process.env.CLI_CALL = 'true';
|
process.env.CLI_CALL = 'true';
|
||||||
require('@gitzone/tsrun');
|
require('@git.zone/tsrun');
|
||||||
require('./ts/index');
|
const cliTool = require('./ts/index');
|
||||||
|
cliTool.runCli();
|
||||||
|
|||||||
@@ -9,12 +9,13 @@
|
|||||||
"npmAccessLevel": "public"
|
"npmAccessLevel": "public"
|
||||||
},
|
},
|
||||||
"gitzone": {
|
"gitzone": {
|
||||||
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "gitzone",
|
"gitscope": "gitzone",
|
||||||
"gitrepo": "tools",
|
"gitrepo": "tools",
|
||||||
"shortDescription": "setup your environment with the most important tools and update them easily.",
|
"shortDescription": "setup your environment with the most important tools and update them easily.",
|
||||||
"npmPackagename": "@gitzone/tools",
|
"npmPackagename": "@git.zone/tools",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
26
package-lock.json
generated
26
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tools",
|
"name": "@git.zone/tools",
|
||||||
"version": "2.0.19",
|
"version": "2.0.23",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1158,9 +1158,9 @@
|
|||||||
"to-fast-properties": "^2.0.0"
|
"to-fast-properties": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsbuild": {
|
"@git.zone/tsbuild": {
|
||||||
"version": "2.1.25",
|
"version": "2.1.25",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.25.tgz",
|
"resolved": "https://verdaccio.lossless.one/@git.zone%2ftsbuild/-/tsbuild-2.1.25.tgz",
|
||||||
"integrity": "sha512-KtesoQEm96x0/x1800R3pcj06RcYTdqwBhG9oje+jQW4qZs/bnUirWZXkRMSLAK92cVm899KzZtYkq/fKga2+A==",
|
"integrity": "sha512-KtesoQEm96x0/x1800R3pcj06RcYTdqwBhG9oje+jQW4qZs/bnUirWZXkRMSLAK92cVm899KzZtYkq/fKga2+A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
@@ -1187,9 +1187,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsbundle": {
|
"@git.zone/tsbundle": {
|
||||||
"version": "1.0.78",
|
"version": "1.0.78",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbundle/-/tsbundle-1.0.78.tgz",
|
"resolved": "https://verdaccio.lossless.one/@git.zone%2ftsbundle/-/tsbundle-1.0.78.tgz",
|
||||||
"integrity": "sha512-QcjzUPYfp7w2uaNom2eOFiBBPabVOqmaI7Cun1P+BBB+a8JwNlpyNOwDY6cPr2MEW2t9Picbiz9yyqkG1qYrtw==",
|
"integrity": "sha512-QcjzUPYfp7w2uaNom2eOFiBBPabVOqmaI7Cun1P+BBB+a8JwNlpyNOwDY6cPr2MEW2t9Picbiz9yyqkG1qYrtw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
@@ -1219,9 +1219,9 @@
|
|||||||
"typescript": "^3.9.7"
|
"typescript": "^3.9.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tsrun": {
|
"@git.zone/tsrun": {
|
||||||
"version": "1.2.12",
|
"version": "1.2.12",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsrun/-/tsrun-1.2.12.tgz",
|
"resolved": "https://verdaccio.lossless.one/@git.zone%2ftsrun/-/tsrun-1.2.12.tgz",
|
||||||
"integrity": "sha512-xR+Ry3dj1L4fR72cYgEAmlE9colXXSPNg0i2jRJFudGO7ZqeGn+mPDOXmg/g7RbEd1wa9uJepgsOy4IlC9JB+g==",
|
"integrity": "sha512-xR+Ry3dj1L4fR72cYgEAmlE9colXXSPNg0i2jRJFudGO7ZqeGn+mPDOXmg/g7RbEd1wa9uJepgsOy4IlC9JB+g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@pushrocks/smartfile": "^7.0.12",
|
"@pushrocks/smartfile": "^7.0.12",
|
||||||
@@ -1270,14 +1270,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@gitzone/tstest": {
|
"@git.zone/tstest": {
|
||||||
"version": "1.0.52",
|
"version": "1.0.52",
|
||||||
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftstest/-/tstest-1.0.52.tgz",
|
"resolved": "https://verdaccio.lossless.one/@git.zone%2ftstest/-/tstest-1.0.52.tgz",
|
||||||
"integrity": "sha512-9n6mhGAd1MKMb4lcXstJvoG9bIl+mb+M9wdajbFe/jzv9q62P5RL9pSdyW4Yk8I7ObJmyggBvr8cLaOUsaqzAQ==",
|
"integrity": "sha512-9n6mhGAd1MKMb4lcXstJvoG9bIl+mb+M9wdajbFe/jzv9q62P5RL9pSdyW4Yk8I7ObJmyggBvr8cLaOUsaqzAQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@git.zone/tsbundle": "^1.0.78",
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@git.zone/tsrun": "^1.2.12",
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/smartbrowser": "^1.0.17",
|
"@pushrocks/smartbrowser": "^1.0.17",
|
||||||
"@pushrocks/smartdelay": "^2.0.10",
|
"@pushrocks/smartdelay": "^2.0.10",
|
||||||
@@ -1474,7 +1474,7 @@
|
|||||||
"integrity": "sha512-ifUU0bbR/p3Vpe+nMg3LYHCPvM9QmRpL83pEYBvZ8KjbkrCxeXTJuNkeO3T8NGfeEL/q+SS8a9oEnpzoT/SGvw==",
|
"integrity": "sha512-ifUU0bbR/p3Vpe+nMg3LYHCPvM9QmRpL83pEYBvZ8KjbkrCxeXTJuNkeO3T8NGfeEL/q+SS8a9oEnpzoT/SGvw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@gitzone/tsbuild": "^2.1.24",
|
"@git.zone/tsbuild": "^2.1.24",
|
||||||
"@pushrocks/consolecolor": "^2.0.1",
|
"@pushrocks/consolecolor": "^2.0.1",
|
||||||
"@pushrocks/smartpromise": "^3.0.6"
|
"@pushrocks/smartpromise": "^3.0.6"
|
||||||
},
|
},
|
||||||
|
|||||||
47
package.json
47
package.json
@@ -1,13 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tools",
|
"name": "@git.zone/tools",
|
||||||
"version": "2.0.19",
|
"version": "3.0.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "setup your environment with the most important tools and update them easily.",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"description": "A CLI tool placeholder for development utilities.",
|
||||||
"typings": "dist/index.d.ts",
|
"main": "dist_ts/index.js",
|
||||||
|
"typings": "dist_ts/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tstest test/",
|
"test": "(tstest test/ --web)",
|
||||||
"build": "tsbuild"
|
"build": "(tsbuild --web)"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"gtools": "cli.js"
|
"gtools": "cli.js"
|
||||||
@@ -29,30 +30,26 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/GitZoneTools/npmg#readme",
|
"homepage": "https://github.com/GitZoneTools/npmg#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@git.zone/tsbuild": "^4.1.2",
|
||||||
"@gitzone/tstest": "^1.0.52",
|
"@git.zone/tstest": "^3.1.8"
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
|
||||||
"tslint": "^6.1.3",
|
|
||||||
"tslint-config-prettier": "^1.18.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@gitzone/tsrun": "^1.2.12",
|
"@git.zone/tsrun": "^2.0.1",
|
||||||
"@pushrocks/smartcli": "^3.0.12",
|
"@push.rocks/smartcli": "^4.0.20",
|
||||||
"@pushrocks/smartfile": "^8.0.4",
|
"@types/node": "^22.0.0"
|
||||||
"@pushrocks/smartlog": "^2.0.39",
|
|
||||||
"@pushrocks/smartlog-destination-local": "^8.0.8",
|
|
||||||
"@pushrocks/smartshell": "^2.0.26",
|
|
||||||
"@types/node": "^14.11.2"
|
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/*",
|
"ts/**/*",
|
||||||
"ts_web/*",
|
"ts_web/**/*",
|
||||||
"dist/*",
|
"dist/**/*",
|
||||||
"dist_web/*",
|
"dist_*/**/*",
|
||||||
"dist_ts_web/*",
|
"dist_ts/**/*",
|
||||||
"assets/*",
|
"dist_ts_web/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
|
],
|
||||||
|
"browserslist": [
|
||||||
|
"last 1 chrome versions"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
8359
pnpm-lock.yaml
generated
Normal file
8359
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
42
readme.md
Normal file
42
readme.md
Normal file
@@ -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.
|
||||||
9
test/test.node.ts
Normal file
9
test/test.node.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||||
|
|
||||||
|
import * as tools from '../ts/index.js';
|
||||||
|
|
||||||
|
tap.test('should export runCli function', async () => {
|
||||||
|
expect(typeof tools.runCli).toEqual('function');
|
||||||
|
});
|
||||||
|
|
||||||
|
export default tap.start();
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
|
||||||
|
|
||||||
import * as tools from '../ts/tools.install';
|
|
||||||
|
|
||||||
tap.test("should install default list globally when parsed 'default' as argument", async () => {
|
|
||||||
await tools.install('default');
|
|
||||||
});
|
|
||||||
|
|
||||||
tap.start();
|
|
||||||
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
/**
|
||||||
|
* autocreated commitinfo by @push.rocks/commitinfo
|
||||||
|
*/
|
||||||
|
export const commitinfo = {
|
||||||
|
name: '@git.zone/tools',
|
||||||
|
version: '3.0.0',
|
||||||
|
description: 'A CLI tool placeholder for development utilities.'
|
||||||
|
}
|
||||||
10
ts/index.ts
10
ts/index.ts
@@ -1,3 +1,7 @@
|
|||||||
import plugins = require('./tools.plugins');
|
import * as cli from './tools.cli.js';
|
||||||
import * as cli from './tools.cli';
|
|
||||||
cli.run();
|
export const runCli = async () => {
|
||||||
|
await cli.run();
|
||||||
|
};
|
||||||
|
|
||||||
|
runCli();
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import * as plugins from './tools.plugins';
|
import * as plugins from './tools.plugins.js';
|
||||||
import * as toolsInstall from './tools.install';
|
|
||||||
|
|
||||||
export const run = async () => {
|
export const run = async () => {
|
||||||
const toolsCli = new plugins.smartcli.Smartcli();
|
const toolsCli = new plugins.smartcli.Smartcli();
|
||||||
|
|
||||||
toolsCli.addCommand('install').subscribe(async argvArg => {
|
toolsCli.standardCommand().subscribe(async (argvArg) => {
|
||||||
toolsInstall.install('default');
|
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();
|
toolsCli.startParse();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,38 +0,0 @@
|
|||||||
import plugins = require('./tools.plugins');
|
|
||||||
import paths = require('./tools.paths');
|
|
||||||
import { logger } from './tools.logging';
|
|
||||||
|
|
||||||
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 = plugins.smartfile.fs.toObjectSync(
|
|
||||||
plugins.path.join(paths.assetsDir, 'package_library.json')
|
|
||||||
);
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
import * as plugins from './tools.plugins';
|
|
||||||
|
|
||||||
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());
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
import plugins = require('./tools.plugins');
|
|
||||||
|
|
||||||
export const packageBase = plugins.path.join(__dirname, '../');
|
|
||||||
export const assetsDir = plugins.path.join(packageBase, './assets');
|
|
||||||
@@ -1,11 +1,4 @@
|
|||||||
// node native
|
// push.rocks scope
|
||||||
import * as path from 'path';
|
import * as smartcli from '@push.rocks/smartcli';
|
||||||
|
|
||||||
// pushrocks scope
|
export { smartcli };
|
||||||
import * as smartlog from '@pushrocks/smartlog';
|
|
||||||
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
|
|
||||||
import * as smartcli from '@pushrocks/smartcli';
|
|
||||||
import * as smartfile from '@pushrocks/smartfile';
|
|
||||||
import * as smartshell from '@pushrocks/smartshell';
|
|
||||||
|
|
||||||
export { smartlog, smartlogDestinationLocal, path, smartcli, smartfile, smartshell };
|
|
||||||
|
|||||||
17
tslint.json
17
tslint.json
@@ -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"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user