fix(core): update

This commit is contained in:
Philipp Kunz 2023-07-13 03:19:11 +02:00
parent 74e1df6824
commit 37e6d94c9f
12 changed files with 1949 additions and 1408 deletions

View File

@ -1,3 +0,0 @@
# How to contribute
Start with `tstest.classes.tstest.ts` to understand whats happening

View File

@ -16,25 +16,25 @@
"prepareTest": "git clone https://gitlab.com/sandboxzone/sandbox-npmts.git .nogit/sandbox-npmts && cd .nogit/sandbox-npmts && npm install", "prepareTest": "git clone https://gitlab.com/sandboxzone/sandbox-npmts.git .nogit/sandbox-npmts && cd .nogit/sandbox-npmts && npm install",
"tstest": "cd .nogit/sandbox-npmts && node ../../cli.ts.js test/ --web", "tstest": "cd .nogit/sandbox-npmts && node ../../cli.ts.js test/ --web",
"cleanUp": "rm -rf .nogit/sandbox-npmts", "cleanUp": "rm -rf .nogit/sandbox-npmts",
"build": "(tsbuild --web --allowimplicitany)", "build": "(tsbuild --web --allowimplicitany --skiplibcheck)",
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.65", "@gitzone/tsbuild": "^2.1.66",
"@types/node": "^18.11.9" "@types/node": "^20.4.2"
}, },
"dependencies": { "dependencies": {
"@gitzone/tsbundle": "^2.0.6", "@apiglobal/typedserver": "^2.0.65",
"@gitzone/tsrun": "^1.2.37", "@gitzone/tsbundle": "^2.0.8",
"@pushrocks/consolecolor": "^2.0.1", "@gitzone/tsrun": "^1.2.43",
"@pushrocks/smartbrowser": "^2.0.5", "@push.rocks/consolecolor": "^2.0.1",
"@pushrocks/smartdelay": "^2.0.13", "@push.rocks/smartbrowser": "^2.0.5",
"@pushrocks/smartexpress": "^4.0.21", "@push.rocks/smartdelay": "^3.0.2",
"@pushrocks/smartfile": "^10.0.4", "@push.rocks/smartfile": "^10.0.28",
"@pushrocks/smartlog": "^3.0.1", "@push.rocks/smartlog": "^3.0.3",
"@pushrocks/smartpromise": "^3.1.7", "@push.rocks/smartpromise": "^4.0.3",
"@pushrocks/smartshell": "^2.0.30", "@push.rocks/smartshell": "^3.0.3",
"@pushrocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.0.12",
"figures": "^5.0.0" "figures": "^5.0.0"
}, },
"files": [ "files": [

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@push.rocks/tapbundle';
import * as tstest from '../ts/index.js'; import * as tstest from '../ts/index.js';
tap.test('prepare test', async () => {}); tap.test('prepare test', async () => {});

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@gitzone/tstest', name: '@gitzone/tstest',
version: '1.0.75', version: '1.0.76',
description: 'a test utility to run tests that match test/**/*.ts' description: 'a test utility to run tests that match test/**/*.ts'
} }

View File

@ -2,7 +2,7 @@
// combines different tap test files to an overall result // combines different tap test files to an overall result
// ============ // ============
import * as plugins from './tstest.plugins.js'; import * as plugins from './tstest.plugins.js';
import { coloredString as cs } from '@pushrocks/consolecolor'; import { coloredString as cs } from '@push.rocks/consolecolor';
import { TapParser } from './tstest.classes.tap.parser.js'; import { TapParser } from './tstest.classes.tap.parser.js';
import * as logPrefixes from './tstest.logprefixes.js'; import * as logPrefixes from './tstest.logprefixes.js';

View File

@ -1,5 +1,5 @@
import { ChildProcess } from 'child_process'; import { ChildProcess } from 'child_process';
import { coloredString as cs } from '@pushrocks/consolecolor'; import { coloredString as cs } from '@push.rocks/consolecolor';
// ============ // ============
// combines different tap test files to an overall result // combines different tap test files to an overall result

View File

@ -1,6 +1,6 @@
import * as plugins from './tstest.plugins.js'; import * as plugins from './tstest.plugins.js';
import * as paths from './tstest.paths.js'; import * as paths from './tstest.paths.js';
import { Smartfile } from '@pushrocks/smartfile'; import { Smartfile } from '@push.rocks/smartfile';
// tap related stuff // tap related stuff
import { TapCombinator } from './tstest.classes.tap.combinator.js'; import { TapCombinator } from './tstest.classes.tap.combinator.js';

View File

@ -2,7 +2,7 @@ import * as plugins from './tstest.plugins.js';
import * as paths from './tstest.paths.js'; import * as paths from './tstest.paths.js';
import * as logPrefixes from './tstest.logprefixes.js'; import * as logPrefixes from './tstest.logprefixes.js';
import { coloredString as cs } from '@pushrocks/consolecolor'; import { coloredString as cs } from '@push.rocks/consolecolor';
import { TestDirectory } from './tstest.classes.testdirectory.js'; import { TestDirectory } from './tstest.classes.testdirectory.js';
import { TapCombinator } from './tstest.classes.tap.combinator.js'; import { TapCombinator } from './tstest.classes.tap.combinator.js';
@ -105,13 +105,13 @@ export class TsTest {
}); });
// lets create a server // lets create a server
const server = new plugins.smartexpress.Server({ const server = new plugins.typedserver.servertools.Server({
cors: true, cors: true,
port: 3007, port: 3007,
}); });
server.addRoute( server.addRoute(
'/test', '/test',
new plugins.smartexpress.Handler('GET', async (req, res) => { new plugins.typedserver.servertools.Handler('GET', async (req, res) => {
res.type('.html'); res.type('.html');
res.write(` res.write(`
<html> <html>
@ -126,7 +126,7 @@ export class TsTest {
res.end(); res.end();
}) })
); );
server.addRoute('*', new plugins.smartexpress.HandlerStatic(tsbundleCacheDirPath)); server.addRoute('*', new plugins.typedserver.servertools.HandlerStatic(tsbundleCacheDirPath));
await server.start(); await server.start();
// lets do the browser bit // lets do the browser bit

View File

@ -1,5 +1,5 @@
import * as plugins from './tstest.plugins.js'; import * as plugins from './tstest.plugins.js';
import { coloredString as cs } from '@pushrocks/consolecolor'; import { coloredString as cs } from '@push.rocks/consolecolor';
export const TapPrefix = cs(`::TAP::`, 'pink', 'black'); export const TapPrefix = cs(`::TAP::`, 'pink', 'black');
export const TapErrorPrefix = cs(` !!!TAP PROTOCOL ERROR!!! `, 'red', 'black'); export const TapErrorPrefix = cs(` !!!TAP PROTOCOL ERROR!!! `, 'red', 'black');

View File

@ -3,21 +3,26 @@ import * as path from 'path';
export { path }; export { path };
// @pushrocks scope // @apiglobal scope
import * as consolecolor from '@pushrocks/consolecolor'; import * as typedserver from '@apiglobal/typedserver';
import * as smartbrowser from '@pushrocks/smartbrowser';
import * as smartexpress from '@pushrocks/smartexpress'; export {
import * as smartdelay from '@pushrocks/smartdelay'; typedserver
import * as smartfile from '@pushrocks/smartfile'; }
import * as smartlog from '@pushrocks/smartlog';
import * as smartpromise from '@pushrocks/smartpromise'; // @push.rocks scope
import * as smartshell from '@pushrocks/smartshell'; import * as consolecolor from '@push.rocks/consolecolor';
import * as tapbundle from '@pushrocks/tapbundle'; import * as smartbrowser from '@push.rocks/smartbrowser';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartfile from '@push.rocks/smartfile';
import * as smartlog from '@push.rocks/smartlog';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartshell from '@push.rocks/smartshell';
import * as tapbundle from '@push.rocks/tapbundle';
export { export {
consolecolor, consolecolor,
smartbrowser, smartbrowser,
smartexpress,
smartdelay, smartdelay,
smartfile, smartfile,
smartlog, smartlog,

11
tsconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true,
"verbatimModuleSyntax": true,
}
}