Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
61a82f0d03 | |||
2c8f262c0a | |||
bd5ec7ca76 | |||
857882807f | |||
6bfc8a1961 | |||
15f4502083 | |||
5efd905068 | |||
ae01679474 | |||
f0bdfa9a65 | |||
a88cf067a1 | |||
c5cd30e20e | |||
02eb0c5435 | |||
6ab3ed21e0 | |||
2f5374be50 | |||
1577265f6b | |||
3b9532bb70 | |||
bcb1ccc6e7 | |||
1dde4c8277 | |||
3a6fc44fbb | |||
a0d523513b | |||
0715f88189 | |||
4a50ae3b00 | |||
2b7c3b78f6 | |||
142667ac87 |
138
.gitlab-ci.yml
138
.gitlab-ci.yml
@ -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 @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
|
|
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -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"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2018 Lossless GmbH (hello@lossless.com)
|
Copyright (c) 2018 Task Venture Capital GmbH (hello@task.vc)
|
||||||
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
||||||
|
|
||||||
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
|
||||||
|
113
changelog.md
Normal file
113
changelog.md
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-06-24 - 1.2.49 - fix(core)
|
||||||
|
Minor maintenance updates with version bump
|
||||||
|
|
||||||
|
|
||||||
|
## 2024-06-24 - 1.2.48 - fix(dependencies)
|
||||||
|
Update TypeScript dependency version
|
||||||
|
|
||||||
|
- Updated TypeScript from version 5.4.5 to 5.5.2 to include latest features and fixes.
|
||||||
|
|
||||||
|
## 2024-06-24 - 1.2.47 - fix(core)
|
||||||
|
Remove GitLab CI configuration and update dependencies
|
||||||
|
|
||||||
|
- Removed the .gitlab-ci.yml file.
|
||||||
|
- Updated @git.zone/tsbuild from ^2.1.69 to ^2.1.80.
|
||||||
|
- Updated @push.rocks/smartcli from ^4.0.8 to ^4.0.11.
|
||||||
|
- Updated @types/node from ^20.5.6 to ^20.14.8.
|
||||||
|
- Updated @push.rocks/smartfile from ^10.0.30 to ^11.0.21.
|
||||||
|
- Updated @push.rocks/smartshell from ^3.0.3 to ^3.0.5.
|
||||||
|
- Updated ts-node from ^10.9.1 to ^10.9.2.
|
||||||
|
- Updated typescript from 5.1.6 to 5.4.5.
|
||||||
|
|
||||||
|
## 2023-08-26 - 1.2.44 to 1.2.46 - Core Updates and Fixes
|
||||||
|
Several internal updates and fixes to the core functionality.
|
||||||
|
|
||||||
|
- Continuous core updates for improved performance and bug fixes
|
||||||
|
|
||||||
|
## 2023-07-13 - 1.2.42 to 1.2.44 - Core Updates and Fixes
|
||||||
|
Addressing minor bugs and improving core operations.
|
||||||
|
|
||||||
|
- Several bug fixes to enhance stability
|
||||||
|
|
||||||
|
## 2023-06-03 - 1.2.39 to 1.2.42 - Core and Stability Improvements
|
||||||
|
Focus on refining core processes and fixing issues.
|
||||||
|
|
||||||
|
- Significant fixes for better core performance
|
||||||
|
|
||||||
|
## 2022-10-12 - 1.2.37 to 1.2.39 - Core Updates
|
||||||
|
Series of bug fixes to maintain core functionality.
|
||||||
|
|
||||||
|
- Addressed minor bugs in core areas
|
||||||
|
|
||||||
|
## 2022-06-02 - 1.2.34 to 1.2.37 - Core Maintenance
|
||||||
|
Routine updates to address and fix core issues.
|
||||||
|
|
||||||
|
- Bug fixes for better core stability
|
||||||
|
|
||||||
|
## 2022-03-11 to 2022-03-13 - 1.2.18 to 1.2.33 - Core Enhancements
|
||||||
|
Multiple updates focusing on resolving core issues and maintaining performance.
|
||||||
|
|
||||||
|
- Continuous improvements and fixes in the core functions
|
||||||
|
|
||||||
|
## 2021-10-06 - 1.2.18 to 1.2.19 - Core Updates
|
||||||
|
Minor fixes to keep up with core performance.
|
||||||
|
|
||||||
|
- Addressed core issues for improved functionality
|
||||||
|
|
||||||
|
## 2021-06-23 to 2021-06-24 - 1.2.12 to 1.2.17 - Core Improvements
|
||||||
|
Series of updates addressing core functionality.
|
||||||
|
|
||||||
|
- Enhanced core features and fixed known bugs
|
||||||
|
|
||||||
|
## 2020-06-01 - 1.2.8 to 1.2.11 - Core Stability
|
||||||
|
Fixes focusing on ensuring core stability.
|
||||||
|
|
||||||
|
- Stability improvements in core components
|
||||||
|
|
||||||
|
## 2019-07-17 - 1.2.6 to 1.2.7 - Core Updates
|
||||||
|
Minor fixes targeting the core framework.
|
||||||
|
|
||||||
|
- Adjusted core components to enhance performance
|
||||||
|
|
||||||
|
## 2019-04-08 to 2019-07-17 - 1.2.2 to 1.2.6 - ES2017 Compatibility and Core Fixes
|
||||||
|
Updated core to support ES2017 and addressed various core issues.
|
||||||
|
|
||||||
|
- Updated environment compatibility
|
||||||
|
- Fixed several core issues
|
||||||
|
|
||||||
|
## 2018-12-06 - 1.1.13 to 1.1.17 - Core Fixes
|
||||||
|
Routine updates addressing core bugs and issues.
|
||||||
|
|
||||||
|
- Multiple fixes to core functionality
|
||||||
|
|
||||||
|
## 2018-08-08 - 1.1.11 to 1.1.12 - Dependency Updates
|
||||||
|
Updated dependencies critical for core performance.
|
||||||
|
|
||||||
|
- Enhanced dependencies for better performance
|
||||||
|
|
||||||
|
## 2018-07-13 - 1.1.4 to 1.1.10 - Various Updates
|
||||||
|
Multiple updates focused on documentation, dependencies, and core functions.
|
||||||
|
|
||||||
|
- Fixed documentation
|
||||||
|
- Updated core
|
||||||
|
- Removed obsolete dependencies
|
||||||
|
|
||||||
|
## 2018-06-30 to 2018-07-03 - 1.0.8 to 1.1.3 - Feature and Core Fixes
|
||||||
|
Introduced new features and addressed core issues.
|
||||||
|
|
||||||
|
- Enabled new CLI options
|
||||||
|
- Resolved core issues for better functionality
|
||||||
|
|
||||||
|
## 2018-06-25 - 1.0.4 to 1.0.7 - Core and Security Improvements
|
||||||
|
Made core improvements and updated security features.
|
||||||
|
|
||||||
|
- Added security files
|
||||||
|
- Fixed core argument parsing issues
|
||||||
|
|
||||||
|
## 2018-06-04 - 1.0.1 to 1.0.3 - Initial Fixes and Improvements
|
||||||
|
Initial setup and fixes to existing issues.
|
||||||
|
|
||||||
|
- Moved dependencies to dev
|
||||||
|
- Fixed package details
|
@ -10,7 +10,7 @@
|
|||||||
"githost": "gitlab.com",
|
"githost": "gitlab.com",
|
||||||
"gitscope": "gitzone",
|
"gitscope": "gitzone",
|
||||||
"gitrepo": "tsrun",
|
"gitrepo": "tsrun",
|
||||||
"shortDescription": "run typescript programs efficiently",
|
"description": "run typescript programs efficiently",
|
||||||
"npmPackagename": "@gitzone/tsrun",
|
"npmPackagename": "@gitzone/tsrun",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
}
|
}
|
||||||
|
2927
package-lock.json
generated
2927
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsrun",
|
"name": "@git.zone/tsrun",
|
||||||
"version": "1.2.37",
|
"version": "1.2.49",
|
||||||
"description": "run typescript programs efficiently",
|
"description": "run typescript programs efficiently",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
@ -13,19 +13,20 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tsbuild && node ./cli.js test/test.js sayhello)",
|
"test": "(tsbuild && node ./cli.js test/test.js sayhello)",
|
||||||
"format": "(gitzone format)",
|
"format": "(gitzone format)",
|
||||||
"build": "(tsbuild)"
|
"build": "(tsbuild)",
|
||||||
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@git.zone/tsbuild": "^2.1.80",
|
||||||
"@pushrocks/smartcli": "^3.0.14",
|
"@push.rocks/smartcli": "^4.0.11",
|
||||||
"@types/node": "^17.0.42",
|
"@types/node": "^20.14.8",
|
||||||
"node-fetch": "^3.2.6"
|
"node-fetch": "^3.3.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartfile": "^10.0.2",
|
"@push.rocks/smartfile": "^11.0.21",
|
||||||
"@pushrocks/smartshell": "^2.0.30",
|
"@push.rocks/smartshell": "^3.0.5",
|
||||||
"ts-node": "^10.8.1",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^4.7.3"
|
"typescript": "5.5.2"
|
||||||
},
|
},
|
||||||
"private": false,
|
"private": false,
|
||||||
"files": [
|
"files": [
|
||||||
|
1362
pnpm-lock.yaml
generated
Normal file
1362
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
0
readme.hints.md
Normal file
0
readme.hints.md
Normal file
@ -21,7 +21,6 @@ Code Style | [](htt
|
|||||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
|
||||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
PackagePhobia (package size on registry) | [](https://lossless.cloud)
|
||||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
|
||||||
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@ -43,7 +42,6 @@ We are always happy for code contributions. If you are not the code contributing
|
|||||||
|
|
||||||
For further information read the linked docs at the top of this readme.
|
For further information read the linked docs at the top of this readme.
|
||||||
|
|
||||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
## Legal
|
||||||
|
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
|
||||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
|
||||||
|
|
||||||
[](https://maintainedby.lossless.com)
|
|
||||||
|
12
test/test.ts
12
test/test.ts
@ -2,13 +2,13 @@ const textToPost: string = 'Test runs!';
|
|||||||
console.log(textToPost);
|
console.log(textToPost);
|
||||||
|
|
||||||
const run = async () => {
|
const run = async () => {
|
||||||
const smartcli = await import('@pushrocks/smartcli');
|
const smartcli = await import('@push.rocks/smartcli');
|
||||||
const smartcliInstance = new smartcli.Smartcli();
|
const smartcliInstance = new smartcli.Smartcli();
|
||||||
console.log(process.argv)
|
console.log(process.argv);
|
||||||
smartcliInstance.addCommand('sayhello').subscribe(async argvArg => {
|
smartcliInstance.addCommand('sayhello').subscribe(async (argvArg) => {
|
||||||
console.log('hello there');
|
console.log('hello there');
|
||||||
})
|
});
|
||||||
smartcliInstance.startParse();
|
smartcliInstance.startParse();
|
||||||
}
|
};
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* autocreated commitinfo by @pushrocks/commitinfo
|
* autocreated commitinfo by @push.rocks/commitinfo
|
||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@gitzone/tsrun',
|
name: '@git.zone/tsrun',
|
||||||
version: '1.2.37',
|
version: '1.2.49',
|
||||||
description: 'run typescript programs efficiently'
|
description: 'run typescript programs efficiently'
|
||||||
}
|
}
|
||||||
|
10
ts/loader.ts
10
ts/loader.ts
@ -10,12 +10,14 @@ const defaultTsNodeOptions: plugins.tsNode.CreateOptions = {
|
|||||||
esModuleInterop: true,
|
esModuleInterop: true,
|
||||||
strictNullChecks: false,
|
strictNullChecks: false,
|
||||||
moduleResolution: <any>'nodenext',
|
moduleResolution: <any>'nodenext',
|
||||||
module: <any>'ESNext',
|
module: <any>'nodenext',
|
||||||
importsNotUsedAsValues: <any>'preserve',
|
verbatimModuleSyntax: true,
|
||||||
} as CompilerOptions,
|
} as CompilerOptions,
|
||||||
esm: true,
|
esm: true,
|
||||||
skipIgnore: true,
|
skipIgnore: true,
|
||||||
transpileOnly: true
|
transpileOnly: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const { resolve, load, getFormat, transformSource } = plugins.tsNode.createEsmHooks(plugins.tsNode.register(defaultTsNodeOptions)) as any;
|
export const { resolve, load, getFormat, transformSource } = plugins.tsNode.createEsmHooks(
|
||||||
|
plugins.tsNode.register(defaultTsNodeOptions)
|
||||||
|
) as any;
|
||||||
|
@ -2,21 +2,14 @@
|
|||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import * as url from 'url';
|
import * as url from 'url';
|
||||||
|
|
||||||
export {
|
export { path, url };
|
||||||
path,
|
|
||||||
url
|
|
||||||
}
|
|
||||||
|
|
||||||
// @pushrocks scope
|
// @pushrocks scope
|
||||||
import * as smartshell from '@pushrocks/smartshell';
|
import * as smartshell from '@push.rocks/smartshell';
|
||||||
|
|
||||||
export {
|
export { smartshell };
|
||||||
smartshell
|
|
||||||
}
|
|
||||||
|
|
||||||
// third party scope
|
// third party scope
|
||||||
import * as tsNode from 'ts-node';
|
import * as tsNode from 'ts-node';
|
||||||
|
|
||||||
export {
|
export { tsNode };
|
||||||
tsNode
|
|
||||||
}
|
|
||||||
|
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