@autometa/types
Advanced tools
| type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never; | ||
| type Class<T> = { | ||
| new (...args: any): T; | ||
| }; | ||
| type AbstractClass<T> = Function & { | ||
| prototype: T; | ||
| }; | ||
| declare const Status: { | ||
| readonly FAILED: "FAILED"; | ||
| readonly BROKEN: "BROKEN"; | ||
| readonly PASSED: "PASSED"; | ||
| readonly SKIPPED: "SKIPPED"; | ||
| }; | ||
| type StatusType = keyof typeof Status; | ||
| declare const TestModifier: { | ||
| readonly SKIP: "SKIP"; | ||
| }; | ||
| type ModifierType = keyof typeof TestModifier; | ||
| type TestFunction = (...args: unknown[]) => unknown; | ||
| type AnyFunction = (...args: unknown[]) => unknown; | ||
| declare const STEP_TYPE: { | ||
| readonly Context: "Context"; | ||
| readonly Action: "Action"; | ||
| readonly Outcome: "Outcome"; | ||
| readonly Conjunction: "Conjunction"; | ||
| readonly Unknown: "Unknown"; | ||
| }; | ||
| type StepType = keyof typeof STEP_TYPE; | ||
| declare const STEP_KEYWORD: { | ||
| readonly Given: "Given"; | ||
| readonly When: "When"; | ||
| readonly Then: "Then"; | ||
| readonly And: "And"; | ||
| readonly But: "But"; | ||
| }; | ||
| type StepKeyword = keyof typeof STEP_KEYWORD; | ||
| export { AbstractClass, AnyFunction, ArrayElement, Class, ModifierType, STEP_KEYWORD, STEP_TYPE, Status, StatusType, StepKeyword, StepType, TestFunction, TestModifier }; |
+6
-0
| # Gherkin | ||
| ## 0.4.0 | ||
| ### Minor Changes | ||
| - 554b77e: Releasing packages | ||
| ## 0.3.1 | ||
@@ -4,0 +10,0 @@ |
+18
-0
@@ -13,5 +13,23 @@ // src/test-status.ts | ||
| }; | ||
| // src/gherking.enums.ts | ||
| var STEP_TYPE = { | ||
| Context: "Context", | ||
| Action: "Action", | ||
| Outcome: "Outcome", | ||
| Conjunction: "Conjunction", | ||
| Unknown: "Unknown" | ||
| }; | ||
| var STEP_KEYWORD = { | ||
| Given: "Given", | ||
| When: "When", | ||
| Then: "Then", | ||
| And: "And", | ||
| But: "But" | ||
| }; | ||
| export { | ||
| STEP_KEYWORD, | ||
| STEP_TYPE, | ||
| Status, | ||
| TestModifier | ||
| }; |
+43
-5
@@ -1,5 +0,43 @@ | ||
| export * from "./array-element"; | ||
| export * from "./class"; | ||
| export * from "./test-status"; | ||
| export * from './test-modifiers'; | ||
| export * from "./functions"; | ||
| type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never; | ||
| type Class<T> = { | ||
| new (...args: any): T; | ||
| }; | ||
| type AbstractClass<T> = Function & { | ||
| prototype: T; | ||
| }; | ||
| declare const Status: { | ||
| readonly FAILED: "FAILED"; | ||
| readonly BROKEN: "BROKEN"; | ||
| readonly PASSED: "PASSED"; | ||
| readonly SKIPPED: "SKIPPED"; | ||
| }; | ||
| type StatusType = keyof typeof Status; | ||
| declare const TestModifier: { | ||
| readonly SKIP: "SKIP"; | ||
| }; | ||
| type ModifierType = keyof typeof TestModifier; | ||
| type TestFunction = (...args: unknown[]) => unknown; | ||
| type AnyFunction = (...args: unknown[]) => unknown; | ||
| declare const STEP_TYPE: { | ||
| readonly Context: "Context"; | ||
| readonly Action: "Action"; | ||
| readonly Outcome: "Outcome"; | ||
| readonly Conjunction: "Conjunction"; | ||
| readonly Unknown: "Unknown"; | ||
| }; | ||
| type StepType = keyof typeof STEP_TYPE; | ||
| declare const STEP_KEYWORD: { | ||
| readonly Given: "Given"; | ||
| readonly When: "When"; | ||
| readonly Then: "Then"; | ||
| readonly And: "And"; | ||
| readonly But: "But"; | ||
| }; | ||
| type StepKeyword = keyof typeof STEP_KEYWORD; | ||
| export { AbstractClass, AnyFunction, ArrayElement, Class, ModifierType, STEP_KEYWORD, STEP_TYPE, Status, StatusType, StepKeyword, StepType, TestFunction, TestModifier }; |
+20
-0
@@ -23,2 +23,4 @@ "use strict"; | ||
| __export(src_exports, { | ||
| STEP_KEYWORD: () => STEP_KEYWORD, | ||
| STEP_TYPE: () => STEP_TYPE, | ||
| Status: () => Status, | ||
@@ -41,6 +43,24 @@ TestModifier: () => TestModifier | ||
| }; | ||
| // src/gherking.enums.ts | ||
| var STEP_TYPE = { | ||
| Context: "Context", | ||
| Action: "Action", | ||
| Outcome: "Outcome", | ||
| Conjunction: "Conjunction", | ||
| Unknown: "Unknown" | ||
| }; | ||
| var STEP_KEYWORD = { | ||
| Given: "Given", | ||
| When: "When", | ||
| Then: "Then", | ||
| And: "And", | ||
| But: "But" | ||
| }; | ||
| // Annotate the CommonJS export names for ESM import in node: | ||
| 0 && (module.exports = { | ||
| STEP_KEYWORD, | ||
| STEP_TYPE, | ||
| Status, | ||
| TestModifier | ||
| }); |
+7
-13
| { | ||
| "name": "@autometa/types", | ||
| "version": "0.3.1", | ||
| "version": "0.4.0", | ||
| "main": "dist/index.js", | ||
@@ -18,16 +18,13 @@ "module": "dist/esm/index.js", | ||
| "devDependencies": { | ||
| "@cucumber/cucumber-expressions": "^16.1.2", | ||
| "@types/node": "^18.11.18", | ||
| "@types/uuid": "^9.0.1", | ||
| "@typescript-eslint/eslint-plugin": "^5.54.1", | ||
| "@typescript-eslint/parser": "^5.54.1", | ||
| "eslint": "^8.37.0", | ||
| "eslint-config-custom": " *", | ||
| "eslint": "^8.37.0", | ||
| "eslint-config-prettier": "^8.3.0", | ||
| "nodemon": "^2.0.22", | ||
| "prettier": "^2.8.3", | ||
| "rimraf": "^4.1.2", | ||
| "tsup": "^6.7.0", | ||
| "typescript": "^4.9.5", | ||
| "tsconfig": "0.6.1" | ||
| "tsconfig": "0.7.0", | ||
| "tsup": "^7.2.0", | ||
| "typescript": "^4.9.5" | ||
| }, | ||
@@ -38,9 +35,6 @@ "scripts": { | ||
| "lint:fix": "eslint . --fix", | ||
| "build:js": "tsup", | ||
| "build:dts:tsc": " tsc src/index.ts --declarationDir dist --declaration --emitDeclarationOnly", | ||
| "build:dts": "pnpm build:dts:tsc", | ||
| "build": "pnpm build:js && pnpm build:dts ", | ||
| "build:watch": "tsup --watch" | ||
| "clean": "rimraf dist", | ||
| "build": "tsup" | ||
| }, | ||
| "readme": "# Gherkin\n\nGherkin implementation for @autometa.\n" | ||
| } |
+1
-1
@@ -5,3 +5,3 @@ import { defineConfig } from "tsup"; | ||
| clean: true, // clean up the dist folder | ||
| // dts: true, // generate dts files | ||
| dts: true, // generate dts files | ||
| format: ["cjs", "esm"], // generate cjs and esm files | ||
@@ -8,0 +8,0 @@ skipNodeModulesBundle: true, |
| > @autometa/types@0.3.1 build /home/runner/work/autometa/autometa/packages/types | ||
| > pnpm build:js && pnpm build:dts | ||
| > @autometa/types@0.3.1 build:js /home/runner/work/autometa/autometa/packages/types | ||
| > tsup | ||
| [34mCLI[39m Building entry: src/index.ts | ||
| [34mCLI[39m Using tsconfig: tsconfig.json | ||
| [34mCLI[39m tsup v6.7.0 | ||
| [34mCLI[39m Using tsup config: /home/runner/work/autometa/autometa/packages/types/tsup.config.ts | ||
| [34mCLI[39m Target: es2020 | ||
| [34mCLI[39m Cleaning output folder | ||
| [34mCJS[39m Build start | ||
| [34mESM[39m Build start | ||
| [33mCJS[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m | ||
| [33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m | ||
| [32mCJS[39m [1mdist/index.js [22m[32m1.24 KB[39m | ||
| [32mCJS[39m ⚡️ Build success in 63ms | ||
| [32mESM[39m [1mdist/esm/index.js [22m[32m223.00 B[39m | ||
| [32mESM[39m ⚡️ Build success in 62ms | ||
| > @autometa/types@0.3.1 build:dts /home/runner/work/autometa/autometa/packages/types | ||
| > pnpm build:dts:tsc | ||
| > @autometa/types@0.3.1 build:dts:tsc /home/runner/work/autometa/autometa/packages/types | ||
| > tsc src/index.ts --declarationDir dist --declaration --emitDeclarationOnly | ||
| > @autometa/types@0.3.1 lint /home/runner/work/autometa/autometa/packages/types | ||
| > eslint . --max-warnings 0 | ||
| export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never; |
| export type Class<T> = { | ||
| new (...args: any): T; | ||
| }; | ||
| export type AbstractClass<T> = Function & { | ||
| prototype: T; | ||
| }; |
| export type TestFunction = (...args: unknown[]) => unknown; |
| export declare const TestModifier: { | ||
| readonly SKIP: "SKIP"; | ||
| }; | ||
| export type ModifierType = keyof typeof TestModifier; |
| export declare const Status: { | ||
| readonly FAILED: "FAILED"; | ||
| readonly BROKEN: "BROKEN"; | ||
| readonly PASSED: "PASSED"; | ||
| readonly SKIPPED: "SKIPPED"; | ||
| }; | ||
| export type StatusType = keyof typeof Status; |
7796
11.21%11
-21.43%145
51.04%11
-35.29%