@syntest/module
Advanced tools
Comparing version 0.1.0-beta.17 to 0.1.0-beta.18
import { UserInterface } from "@syntest/cli-graphics"; | ||
import { MetricManager } from "@syntest/metric"; | ||
import { StorageManager } from "@syntest/storage"; | ||
import { ModuleManager } from "../ModuleManager"; | ||
@@ -8,3 +9,3 @@ import { Extension } from "./Extension"; | ||
constructor(name: string, version: string); | ||
abstract register(moduleManager: ModuleManager, metricManager: MetricManager, userInterface: UserInterface, modules: Module[]): Promise<void> | void; | ||
abstract register(moduleManager: ModuleManager, metricManager: MetricManager, storageManager: StorageManager, userInterface: UserInterface, modules: Module[]): Promise<void> | void; | ||
} | ||
@@ -11,0 +12,0 @@ /** |
import { UserInterface } from "@syntest/cli-graphics"; | ||
import { Logger } from "@syntest/logging"; | ||
import { Metric, MetricManager } from "@syntest/metric"; | ||
import { StorageManager } from "@syntest/storage"; | ||
import Yargs = require("yargs"); | ||
@@ -12,2 +13,3 @@ import { Module } from "./extension/Module"; | ||
private _metricManager; | ||
private _storageManager; | ||
private _userInterface; | ||
@@ -22,3 +24,3 @@ private _args; | ||
private _presetsOfModule; | ||
constructor(metricManager: MetricManager, userInterface: UserInterface); | ||
constructor(metricManager: MetricManager, storageManager: StorageManager, userInterface: UserInterface); | ||
get args(): Yargs.ArgumentsCamelCase; | ||
@@ -25,0 +27,0 @@ set args(arguments_: Yargs.ArgumentsCamelCase); |
@@ -29,5 +29,6 @@ "use strict"; | ||
class ModuleManager { | ||
constructor(metricManager, userInterface) { | ||
constructor(metricManager, storageManager, userInterface) { | ||
ModuleManager.LOGGER = (0, logging_1.getLogger)("ModuleManager"); | ||
this._metricManager = metricManager; | ||
this._storageManager = storageManager; | ||
this._userInterface = userInterface; | ||
@@ -213,3 +214,3 @@ this._modules = new Map(); | ||
for (const module of this._modules.values()) { | ||
await module.register(this, this._metricManager, this._userInterface, modules); | ||
await module.register(this, this._metricManager, this._storageManager, this._userInterface, modules); | ||
} | ||
@@ -216,0 +217,0 @@ } |
@@ -7,13 +7,8 @@ import { LoggingOptions } from "@syntest/logging"; | ||
}; | ||
export type StorageOptions = { | ||
syntestDirectory: string; | ||
tempSyntestDirectory: string; | ||
}; | ||
export type ModuleOptions = { | ||
modules: string[]; | ||
}; | ||
export type BaseOptions = GeneralOptions & StorageOptions & LoggingOptions & ModuleOptions; | ||
export type BaseOptions = GeneralOptions & LoggingOptions & ModuleOptions; | ||
export declare enum OptionGroups { | ||
General = "General Options:", | ||
Storage = "Storage Options:", | ||
Module = "Module Options:" | ||
@@ -29,8 +24,4 @@ } | ||
modules: any[] | string[]; | ||
} & { | ||
"syntest-directory": string; | ||
} & { | ||
"temp-syntest-directory": string; | ||
}>; | ||
}; | ||
//# sourceMappingURL=Configuration.d.ts.map |
@@ -8,3 +8,2 @@ "use strict"; | ||
OptionGroups["General"] = "General Options:"; | ||
OptionGroups["Storage"] = "Storage Options:"; | ||
OptionGroups["Module"] = "Module Options:"; | ||
@@ -19,3 +18,3 @@ })(OptionGroups = exports.OptionGroups || (exports.OptionGroups = {})); | ||
configureOptions(yargs) { | ||
return (yargs | ||
return yargs | ||
.option("config", { | ||
@@ -46,24 +45,5 @@ alias: ["c"], | ||
type: "string", | ||
}) | ||
// storage | ||
.options("syntest-directory", { | ||
alias: [], | ||
default: "syntest", | ||
description: "The path where everything should be saved", | ||
group: OptionGroups.Storage, | ||
hidden: false, | ||
normalize: true, | ||
type: "string", | ||
}) | ||
.options("temp-syntest-directory", { | ||
alias: [], | ||
default: ".syntest", | ||
description: "The path where all temporary files should be saved", | ||
group: OptionGroups.Storage, | ||
hidden: false, | ||
normalize: true, | ||
type: "string", | ||
})); | ||
}); | ||
}, | ||
}; | ||
//# sourceMappingURL=Configuration.js.map |
{ | ||
"name": "@syntest/module", | ||
"version": "0.1.0-beta.17", | ||
"version": "0.1.0-beta.18", | ||
"description": "The module library of the SynTest Framework", | ||
@@ -52,2 +52,3 @@ "keywords": [ | ||
"@syntest/metric": "^0.1.0-beta.6", | ||
"@syntest/storage": "^0.1.0-beta.0", | ||
"global-modules": "2.0.0", | ||
@@ -62,3 +63,3 @@ "yargs": "^17.7.1" | ||
}, | ||
"gitHead": "45270a3a68b05e2ac9b01aa6c0de71c229116964" | ||
"gitHead": "63b35c84b6b1882195d20f4ef02c95e97cc853cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73778
6
947
+ Added@syntest/storage@0.1.0-beta.0(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addeduniversalify@2.0.1(transitive)