@syntest/module
Advanced tools
Comparing version
import { LoggingOptions } from "@syntest/logging"; | ||
import Yargs = require("yargs"); | ||
export type GeneralOptions = { | ||
config: string; | ||
import yargs = require("yargs"); | ||
export type BaseOptions = PresetOptions & LoggingOptions & ModuleOptions; | ||
export declare enum OptionGroups { | ||
General = "General Options:", | ||
Module = "Module Options:" | ||
} | ||
export type PresetOptions = { | ||
preset: string; | ||
@@ -10,12 +14,4 @@ }; | ||
}; | ||
export type BaseOptions = GeneralOptions & LoggingOptions & ModuleOptions; | ||
export declare enum OptionGroups { | ||
General = "General Options:", | ||
Module = "Module Options:" | ||
} | ||
export declare const Configuration: { | ||
configureUsage(): Yargs.Argv<{}>; | ||
configureOptions(yargs: Yargs.Argv): Yargs.Argv<{ | ||
config: string; | ||
} & { | ||
configureOptions(yargs: yargs.Argv<{}>): yargs.Argv<{ | ||
preset: string; | ||
@@ -22,0 +18,0 @@ } & { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Configuration = exports.OptionGroups = void 0; | ||
const Yargs = require("yargs"); | ||
var OptionGroups; | ||
@@ -11,20 +10,6 @@ (function (OptionGroups) { | ||
exports.Configuration = { | ||
configureUsage() { | ||
return (Yargs.usage(`Usage: syntest <tool> <command> [options]`) | ||
// TODO examples | ||
.epilog("visit https://syntest.org for more documentation")); | ||
}, | ||
configureOptions(yargs) { | ||
return yargs | ||
.option("config", { | ||
alias: ["c"], | ||
default: ".syntest.json", | ||
description: "The syntest configuration file", | ||
group: OptionGroups.General, | ||
hidden: false, | ||
config: true, | ||
type: "string", | ||
}) | ||
.option("preset", { | ||
alias: [], | ||
alias: ["p"], | ||
default: "none", | ||
@@ -31,0 +16,0 @@ description: "The preset you want to use", |
{ | ||
"name": "@syntest/module", | ||
"version": "0.1.2-beta.1", | ||
"version": "0.2.0-beta.0", | ||
"description": "SynTest library for a modular and extendable ecosystem", | ||
@@ -45,12 +45,12 @@ "keywords": [ | ||
"prepack": "cp ../../LICENSE ./ && cp ../../NOTICE ./", | ||
"test": "mocha --config ../../.mocharc.json", | ||
"test:coverage": "nyc --reporter=text --reporter=html mocha --config ../../.mocharc.json", | ||
"test:coverage:ci": "nyc --reporter=lcovonly mocha --config ../../.mocharc.json --reporter json --reporter-option output=test-results.json", | ||
"test:watch": "mocha --config ../../.mocharc.json --watch" | ||
"test": "echo 'no tests'", | ||
"test:coverage": "echo 'no tests'", | ||
"test:coverage:ci": "echo 'no tests'", | ||
"test:watch": "echo 'no tests'" | ||
}, | ||
"dependencies": { | ||
"@syntest/cli-graphics": "^0.2.1-beta.1", | ||
"@syntest/logging": "^0.1.2-beta.1", | ||
"@syntest/metric": "^0.1.2-beta.1", | ||
"@syntest/storage": "^0.2.1-beta.1", | ||
"@syntest/cli-graphics": "^0.2.1-beta.2", | ||
"@syntest/logging": "^0.2.0-beta.0", | ||
"@syntest/metric": "^0.1.2-beta.2", | ||
"@syntest/storage": "^0.3.0-beta.0", | ||
"global-modules": "2.0.0", | ||
@@ -65,3 +65,3 @@ "yargs": "^17.7.1" | ||
}, | ||
"gitHead": "fde9b03d42f12281adcc328da801449c10b3bed7" | ||
"gitHead": "dd7d752f1c013624d0d040f3c9156128136915db" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1
-50%93638
-1.25%1038
-1.8%2
100%+ Added
- Removed
- Removed
- Removed
- Removed